摘要:
1.parseInt,parseFloat 大多数情况下不需要小数点后很多位,可以使用toFixed(n)方法修正后(n是小数后精确的位数)。 console.log(0.119*100); // 11.899999999999999 parseFloat((0.119*100).toFixed(1 阅读全文
摘要:
设置token uni.setStorageSync('data', res.data); 获取token const token = uni.getStorageSync('data') 移除token uni.removeStorageSync('data') 阅读全文
摘要:
document.getElementById('er').innerText 阅读全文