Open zdpdsy opened 3 years ago
测试代码如下:
<template> <div> <richtext @itemclick="listener" style="color:red;text-overflow:ellipsis"> <a pseudo-ref="21"></a> <a pseudo-ref="22"></a> <a pseudo-ref="23"></a> </richtext> </div> </template> <script> module.exports = { methods: { listener: function (foo) { var modal = weex.requireModule('modal'); modal.toast({ message: 'My pseudoRef is '+foo.pseudoRef, duration: 3 }); } } } </script> <style> .logo{width: 50;height: 50;} .title{font-size:42; color: #FF5400;} </style>
测试代码如下: