题目卡片元素

# 题目卡片元素

警告

题目元素尚在内侧阶段,不建议作为产品 API 使用,如有需要,请使用 图片可折叠卡片元素

示例: 《题目卡片元素示例》 (opens new window)

# API

警告

如果你的业务需要同时支持 EN5 Windows 客户端和 enow,请使用 easinote-proxy npm 包。

npm 包(推荐,同时支持 EN5 Windows 客户端和 enow)

详见:easinote-proxy

EasiNoteProxy.Proxy.insertElementByJson('QuestionAnalysisCard','{元素数据描述的 Json 对象}');

EN window 客户端(不推荐,仅支持 Windows 客户端)

这种方式仅限于 EN5 Windows 客户端,ENOW(web网页)端不支持。

window.external.InsertElementByJson("QuestionAnalysisCard", "{元素数据描述的 Json 对象}")

# 属性说明

属性协议名 类型 必需 描述 默认 备注
tag String 卡片的类型标记 业务标记,区分不同元素,类似 seewo-tiku seewo-huaban
questionType String 题目类型
questionTitleUrl String 题干图片URL
questionContentUrl String 题目内容图片URL
answerUrl String 答案图片URL
analysisUrl String 解析图片URL

# json 示例

测试:题目元素 DEBUG

{
  "tag": "seewo-tiku-test",
  "questionType": "单选题",
  "questionTitleUrl": "http://files.eduuu.com/img/2011/08/18/162033_4e4ccb510ed70.jpg",
  "questionContentUrl": "http://5b0988e595225.cdn.sohucs.com/images/20170914/e22bca324ab242f3bc91295b855f4d6d.jpeg",
  "answerUrl": "http://files.eduuu.com/img/2012/07/11/100611_4ffcdf9349df0.jpg",
  "analysisUrl": "https://ss0.baidu.com/94o3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/b219ebc4b74543a90234b6511b178a82b901147b.jpg"
}
更新时间: Saturday, March 20, 2021 16:37