摘要:
Qrcode Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. 問題:canvas繪制的圖片地址跨域報(bào)錯(cuò) 解決方法: 在繪制二維碼前設(shè)置圖片屬性 image.src
閱讀全文
posted @ 2024-03-13 16:37
去你的未來
閱讀(130)
推薦(0)
摘要:
<picker-view :value="value></picker-view> value:[]在顯示組件時(shí)賦值
閱讀全文
posted @ 2024-01-30 11:30
去你的未來
閱讀(209)
推薦(0)
摘要:
getWeekNo() { let d1 = new Date(); let d2 = new Date(); d2.setMonth(0); d2.setDate(1); let rq = d1 - d2; let days = Math.ceil(rq / (24 * 60 * 60 * 100
閱讀全文
posted @ 2021-10-27 17:06
去你的未來
閱讀(14)
推薦(0)
摘要:
getTime(week) { let time; let year = new Date().getFullYear(); let d = new Date(year, 0, 1); while (d.getDay() != 1) { d.setDate(d.getDate() + 1); } l
閱讀全文
posted @ 2021-10-27 17:05
去你的未來
閱讀(47)
推薦(0)
摘要:
小程序獲取系統(tǒng)屏幕邊框的安全距離: safe-area-inset-topsafe-area-inset-rightsafe-area-inset-bottomsafe-area-inset-left ios11:constant(safe-area-inset-bottom) ios11.2:en
閱讀全文
posted @ 2021-04-01 15:43
去你的未來
閱讀(1402)
推薦(0)
摘要:
為了能夠達(dá)到根據(jù)不同設(shè)備之間自適應(yīng),我們先要識(shí)別用戶設(shè)備的分辨率然后再給html設(shè)置大小,然后在寫css過程中只要使用rem就可以能夠做到自適應(yīng)。 下面貼上代碼: fontSize() { let size; let winW = document.documentElement.clientWid
閱讀全文
posted @ 2021-03-02 12:00
去你的未來
閱讀(365)
推薦(0)
摘要:
小程序中rich-text 樣式設(shè)置需要通過正則給富文本添加樣式 replace(/<img/g, '<img style="width:100%" ');
閱讀全文
posted @ 2020-07-29 09:33
去你的未來
閱讀(1961)
推薦(0)
摘要:
npm install xlsx --save chooseFile(){ this.excelData = []; document.getElementById(this.fileId).value = null; this.imFile.click();},importf(obj) { let
閱讀全文
posted @ 2020-07-20 17:29
去你的未來
閱讀(787)
推薦(0)
摘要:
為了實(shí)現(xiàn)數(shù)字密碼輸入框時(shí)也顯示圓點(diǎn),可以用css屬性。 -webkit-text-security:disc; text-security:disc; 語法:text-security: circle | disc | none | square;-webkit-text-security: cir
閱讀全文
posted @ 2020-06-24 11:03
去你的未來
閱讀(835)
推薦(0)
摘要:
wx.getLocalImgData({ localId: localId, // 圖片的localID success: function(res) { result.imgUrl = 'data:image/png;base64,'+res.localData; result.localId =
閱讀全文
posted @ 2020-06-02 16:50
去你的未來
閱讀(1192)
推薦(0)