::-webkit-scrollbar { width: 0px; } ::-webkit-scrollbar { display: none; }
npm ibabel/polyfill -----下載一個(gè)包 在main.js引入 import'@babel/polyfill'
//進(jìn)入全屏 functionenterFullScreen() { varde=document.documentElement; if(de.requestFullscr...
下載npm install lib-flexible --save 在main.js引入import 'lib-flexible' 使用px2rem-loader自動(dòng)將css...
conststartScore=rate=>"★★★★★☆☆☆☆☆".slice(5-rate,10-rate); conststart=startScore(3); sta...
后端node代碼: varws=require("nodejs-websocket") varport=3000; //Screamserverexample:"hi"->"...
//先會(huì)獲取用戶是否授權(quán)了定位豌鸡,如果沒(méi)有就請(qǐng)求授權(quán)嘿般,如果用戶點(diǎn)了拒絕,就彈窗警告涯冠, wx.getSetting({ success(res){ if(!res.authSet...
wx.chooseImage({ count:9,//默認(rèn)9 sizeType:['original','compressed'],//可以指定是原圖還是壓縮圖炉奴,默認(rèn)二者都有...
functiondeepClone(obj){ functionisClass(o){ if(o===null)return"Null"; if(o===undefined)...
constarr=[ {name:"2",age:18}, {name:"23",age:19}, {name:"2",age:19} ]; functiongroup(ar...
.progress{ width:400px; height:17px; margin:5px; color:#fff; background-color:#f1f1f1; ...
isExceed(date1,date2){ // date1:開(kāi)始時(shí)間 // date2:結(jié)束時(shí)間 returnnewPromise((resolve,reject)=>{...
filterTransFer(arr){ // arr:需要過(guò)濾排查的數(shù)組 consthash={} constnewArr=arr.reduceRight((item,ne...
例如修改了一個(gè)a.js文件 git add a.js git commit -m 'update 發(fā)現(xiàn)commit提示語(yǔ)錯(cuò)了 git reset --soft HEAD^ 把...
pickerDisabled:{ //驗(yàn)證時(shí)間范圍 disabledDate:time=>{ constdate=newDate(); constyear=date.getF...