摘要:
PC端的弹性布局 var rem; $(window).resize(function () { //当浏览器大小变化时页面自适应大小 var Btype = BrowserType(); var whdef = 100/2160;// 表示2160的设计图,使用100PX的默认值 var hwde 阅读全文
摘要:
1、转成千分位,保留两位 comdify(n) { let num = Number(n); let re = /\d{1,3}(?=(\d{3})+$)/g; let n1 = num.toFixed(2).replace(/^(\d+)((\.\d+)?)$/, function (s, s1, 阅读全文
摘要:
vue是这样对比的 function looseEqual (a, b) { if (a b) return true const isObjectA = isObject(a) const isObjectB = isObject(b) if (isObjectA && isObjectB) { 阅读全文