摘要: 1.parseInt,parseFloat 大多数情况下不需要小数点后很多位,可以使用toFixed(n)方法修正后(n是小数后精确的位数)。 console.log(0.119*100); // 11.899999999999999 parseFloat((0.119*100).toFixed(1 阅读全文
posted @ 2022-03-16 17:18 埃菲尔上的加菲猫 阅读(615) 评论(0) 推荐(0) 编辑
摘要: 设置token uni.setStorageSync('data', res.data); 获取token const token = uni.getStorageSync('data') 移除token uni.removeStorageSync('data') 阅读全文
posted @ 2022-03-16 17:09 埃菲尔上的加菲猫 阅读(1278) 评论(0) 推荐(0) 编辑
摘要: document.getElementById('er').innerText 阅读全文
posted @ 2022-03-16 15:54 埃菲尔上的加菲猫 阅读(89) 评论(0) 推荐(0) 编辑