const $ = global; const WxParse = require('../../wxParse/wxParse.js'); new $.Page({ data: { imgUrls: [ '/img/demo/banner.jpg', '/img/demo/banner.jpg', '/img/demo/banner.jpg' ] }, onLoad() { WxParse.wxParse('article', 'html', '
hello world
', this); }, handleJump(e) { const { route, type, target } = e.currentTarget.dataset; if (route) { $.router.goto({ path: `/pages/${route}/index`, type: type && parseInt(type), params: { target: target || '' } }); } } });