獲取當(dāng)前日期及目標(biāo)日期 var myDate =new Date();myDate.getFullYear();myDate.getMonth();myDate.getDat...
獲取當(dāng)前日期及目標(biāo)日期 var myDate =new Date();myDate.getFullYear();myDate.getMonth();myDate.getDat...
首先引入 import JEllipsis from '@/components/jeecg/JEllipsis' 在export default里定義 components...
下載 npm install --save html2canvas 需要的頁(yè)面引入import html2canvasfrom "html2canvas" 需要生成的bom加...
過(guò)濾器方法與methods同級(jí) filters: { numFilter(val) { val = val.toString().replace(/\$|\,/g,''); ...
IsWeixinOrAlipay(){var browser; if (/MicroMessenger/.test(window.navigator.userAgent)) ...
axios安裝 npm install axios --save 首先在src目錄下創(chuàng)建axios文件夾,然后創(chuàng)建index.js和fetch.js兩個(gè)文件。 fetch.j...
在data里定義 data: { curentdate :''} 在.js的onload里 var myDate = new Date(); var that=this; ...
首先定義data里currentTime的初始時(shí)間 然后把下面代碼寫(xiě)在點(diǎn)擊的事件中 if (that.data.xianshi == true) {//這個(gè)是自己定義遮罩層的...
.wxml <view class='article1' wx:for="{{quhao_list1}}" wx:for-item='quhao1' wx:key="inde...
.wxml .js bindPhoneInput(e) { var that = this; var phonetel = /^(13[0-9]|14[5-9]|15[0...
首先我們先要在需要傳入和傳出的頁(yè)面定義 const app = getApp() 然后進(jìn)行以下操作 在b.js中(將要進(jìn)行跳轉(zhuǎn)的頁(yè)面): 下面的代碼寫(xiě)在 在actList.j...
wx.request({ url: 'http://ip-api.com/json', success: function (e) { that.setData...
wx.request({ url: '' ",//請(qǐng)求的路徑 method: "POST",//請(qǐng)求的方式 header: { 'Content-Type'...