html52.com
我爱小程序-开发者交流社区

rich-text 如何确定,用户点击事件,点击的是nodes里的具体哪个对象

<rich-text nodes="{{nodes}}" bindtap="tap"></rich-text>


nodes=[

{

                type: 'text',

                text: _subStr.substr(0, startIndex)

},

{

                type:'node',

                name: 'span',

                attrs: {

                    class: 'link_msg',

                    style: 'margin-left:4px;color:#' + color + ';font-weight:' + font_weight + ';'

                },

                children: [{

                    type: 'text',

                    text: foramt[num].linktext

                }]

}]




如何确定,我是点击的第二个type=node呢?

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付