原创 TypeError: Cannot read property 'children' of undefined 出現這樣的報錯

TypeError: Cannot read property ‘children’ of undefined vue項目 element組件忘記加一個給新增加的數據是根據項目類型加載的不一樣會顯示,使用了v-show 後

原创 vue項目中的model層禁止後面頁面滑動

在model彈出層的最外面標籤寫下@touchmove.prevent 就可以禁止後面的內容滑動 <-- 陰影背景層 --> <div class= 'model' @touchmove.prevent></div> 碰到問

原创 JS本地圖片轉base64

廢話不多說,直接上代碼 <!DOCTYPE html> <html> <head> <title>本地圖片轉base64</title> </head> <body> <input type="file" id="imgfil

原创 微信小程序使用picker組件 - 省市二級聯動

picker wxml代碼 <view class="section"> <view class="section__title">二級實例</view> <picker mode="multiSelector" bi

原创 js修改身份證,手機號碼爲****的方法

idenCode: res.data.idenCode.substr(0, 9) + “**” + res.data.idenCode.substr(14), substr idenCode: res.data.idenCode.