// 驗(yàn)證電子郵箱格式 export function email(value) { return /^\w+((-\w+)|(\.\w+))*@[A-Za-z0-9]+(...
// 驗(yàn)證電子郵箱格式 export function email(value) { return /^\w+((-\w+)|(\.\w+))*@[A-Za-z0-9]+(...
開(kāi)啟節(jié)流 throttle="{{true}}" 關(guān)閉節(jié)流函數(shù) throttle:{ type: Boolean. public: !0, value: !0 }
// 設(shè)備信息 const phoneSystemInfo = uni.getSystemInfoSync() // 判斷是否為微信瀏覽器 const isWechat = ...
/** * * 橫向柱狀圖 * @param {number} id * @param {number} _this */ export function rangkingB...
// 根據(jù)當(dāng)前日期獲取上個(gè)月開(kāi)始時(shí)間和結(jié)束時(shí)間 export const getPreDays = () => { const num2 = 2; let date = ...
// 根據(jù)第一天獲取整周的日期 export const getSeventDays = (firstDay) => { const currentDate = new D...
1.首先必須是微信小程序所關(guān)聯(lián)的公眾號(hào) 2.需在小程序設(shè)置里開(kāi)啟關(guān)注公眾號(hào) 3.使用微信小程序開(kāi)發(fā)文檔提供的組件<official-account></official-ac...
小程序?qū)崿F(xiàn)文本展開(kāi)、收起 先在data中定義一個(gè)布爾值數(shù)據(jù),根據(jù)他的false和true來(lái)判斷是否展開(kāi)收起 文本超出區(qū)域顯示省略號(hào) text-overflow:-o-elli...