
uni.setNavigationBarTitle({ title:res.data.title }) res.data.title動(dòng)態(tài)變量 或者 uni.setNavigationBarTitle({ title:'這個(gè)是頁面標(biāo)題' }) 閱讀全文
如果你想判斷是否為「有效值」 你可以用 if(value){ //寫上你要操作的行為 } 這樣將會(huì)過濾掉: -null -undefined -NaN -empty(string)'' -0 -false 然后你可以用來判斷空字符串/null/閱讀全文
關(guān)于rich-text組件動(dòng)態(tài)注入的HTML代碼中包含a標(biāo)簽不能點(diǎn)擊跳轉(zhuǎn) 以下是有問題的部分 nodes:[{ name:'div', attrs:{ class:'div-class', style:'line-height:60px;color:red;text-align:ce閱讀全文
uni-app自定義組件 步驟1.在項(xiàng)目中新建一個(gè)component文件夾,用來存放公用組件 在新建組件中需要在template中為組件綁定名稱,如itemMoive <templatename="itemMoive"> <viewclass="item"> 閱讀全文
組件/標(biāo)簽的變化 以前是html標(biāo)簽,現(xiàn)在是小程序標(biāo)簽 div改成view span、font改成text a改成navigator img改成image input還在,但type屬性改成了confirmtype form、button、checkbox、radio、label、閱讀全文
直接展示代碼,uni-app的上拉加載動(dòng)畫 1.在pages.json添加允許下拉刷新 { "path":"pages/lookuser/lookuser", "style":{ "navigationBarTitleText":"用戶日志", "enablePullDownRe閱讀全文