微信小程序----组件之rich-text
来源:互联网 发布:美国邮箱数据出售 编辑:程序博客网 时间:2024/06/13 03:33
文档地址:https://mp.weixin.qq.com/debug/wxadoc/dev/component/
http://download.csdn.net/download/zhaihaohao1/9962142
根据文档写代码
效果图
项目结构:
核心代码:
index.wxml
<view class="classname"><rich-text nodes="{{nodes}}" bindtap="tap"></rich-text></view>index.js
Page({ /** * 页面的初始数据 */ data: { nodes: [{ name: 'div', attrs: { class: 'div_class', style: 'line-height: 60px; color: red;' }, children: [{ type: 'text', text: 'Hello World!' }] }] }, tap() { console.log('tap') }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { }, /** * 生命周期函数--监听页面隐藏 */ onHide: function () { }, /** * 生命周期函数--监听页面卸载 */ onUnload: function () { }, /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: function () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom: function () { }, /** * 用户点击右上角分享 */ onShareAppMessage: function () { }})源码下载:
http://download.csdn.net/download/zhaihaohao1/9962142
阅读全文
0 0
- 微信小程序----组件之rich-text
- 微信小程序 rich-text
- 微信小程序----组件之text
- 微信小程序 rich-text a标签
- [微信小程序] rich-text富文本
- 微信小程序学习(五)之text组件
- 微信小程序--text组件学习
- Rich Text
- Rich Text
- JSF Tree 组件之 rich:tree
- 微信小程序把玩(十二)text组件
- 微信小程序学习(8)-text组件
- 微信小程序组件(四)text
- 小程序rich-text在iso上无效的问题
- unity4.6 Ugui中文教程之UGUI Rich Text详解
- TextView实现Rich Text
- Rich Text Processing
- 2.2.2微信小程序内容组件 text(文本)
- zookeeper搭建环境配置
- 如何查看80端口被占用?
- Deep learning: prevent overfitting && speed up training
- hdu 6161--Big binary tree(思维--压缩空间)
- 使用MappedByteBuffer读取大文件(1G以上)和释放MappedByteBuffer的资源
- 微信小程序----组件之rich-text
- Android Ble蓝牙开发(服务器端)
- 无缓冲chan
- 迷宫问题
- MyEclipse中server服务窗口的问题
- PHP-上传图片
- golang刷阅读量程序学习记录
- 433M VHF UHF低噪声放大器设计
- 念念不忘的高薪,就用linux学习来回响