家政小程序
Ви не можете вибрати більше 25 тем Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718
  1. const WxParse = require('../../wxParse/wxParse.js')
  2. const $ = global
  3. new $.Page({
  4. onLoad() {
  5. var article = '<div>我是富文本</div>'
  6. /**
  7. * WxParse.wxParse(bindName , type, data, target,imagePadding)
  8. * 1.bindName绑定的数据名(必填)
  9. * 2.type可以为html或者md(必填)
  10. * 3.data为传入的具体数据(必填)
  11. * 4.target为Page对象,一般为this(必填)
  12. * 5.imagePadding为当图片自适应是左右的单一padding(默认为0,可选)
  13. */
  14. WxParse.wxParse('article', 'html', article, this, 5)
  15. },
  16. bookServer() {}
  17. })