
uni.setNavigationBarTitle({ title:res.data.title }) res.data.title动态变量 或者 uni.setNavigationBarTitle({ title:'这个是页面标题' }) 阅读全文
如果你想判断是否为「有效值」 你可以用 if(value){ //写上你要操作的行为 } 这样将会过滤掉: -null -undefined -NaN -empty(string)'' -0 -false 然后你可以用来判断空字符串/null/阅读全文
关于rich-text组件动态注入的HTML代码中包含a标签不能点击跳转 以下是有问题的部分 nodes:[{ name:'div', attrs:{ class:'div-class', style:'line-height:60px;color:red;text-align:ce阅读全文
uni-app自定义组件 步骤1.在项目中新建一个component文件夹,用来存放公用组件 在新建组件中需要在template中为组件绑定名称,如itemMoive <templatename="itemMoive"> <viewclass="item"> 阅读全文
组件/标签的变化 以前是html标签,现在是小程序标签 div改成view span、font改成text a改成navigator img改成image input还在,但type属性改成了confirmtype form、button、checkbox、radio、label、阅读全文
直接展示代码,uni-app的上拉加载动画 1.在pages.json添加允许下拉刷新 { "path":"pages/lookuser/lookuser", "style":{ "navigationBarTitleText":"用户日志", "enablePullDownRe阅读全文