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