上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: 保留小数点后有效数字4位,处理小数位过多,大数运算的结果。 注意:如果数字有7.100096,会返回 7.1000 =>7.1 (小数点后四位有效数字,0去掉 // 去除多余的0保留特定小数有效数字 export function effective(val: any,nums=4) {//nums 阅读全文
posted @ 2022-08-04 18:40 小不点灬 阅读(1510) 评论(0) 推荐(0) 编辑
摘要: formatDecimal(str, num) { //str当前输入值,num是想要保留的小数位数 str = String(str); if (!str.trim()) { return str; } var len1 = str.substr(0, 1); var len2 = str.sub 阅读全文
posted @ 2022-08-01 17:54 小不点灬 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: 一个表达式解决 Reserve0 //就是带e的大数字符串 let num = Reserve0.toLocaleString(); //解析后得到展开的数字字符串 阅读全文
posted @ 2022-05-30 17:42 小不点灬 阅读(23) 评论(0) 推荐(0) 编辑
摘要: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec. 阅读全文
posted @ 2022-05-25 17:56 小不点灬 阅读(1474) 评论(0) 推荐(0) 编辑
摘要: 在mac中不需要借助堡塔远程工具直接连接 example(例子): ssh user@IP explain(解释): ①、user:指远程服务器的用户名②、IP: 指远程服务器的ip地址 可以参考 https://codeantenna.com/a/7ewZfb8gYk 生成宝塔的命令 yum in 阅读全文
posted @ 2022-05-16 16:54 小不点灬 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 这时候需要设置Nginx 配置文件在里面加入下面这句话 location / { try_files $uri $uri/ /index.html$args; } 如果上述方法不行使用下面的 location / { root /www/wwwroot/ospd2.yottachain.net/di 阅读全文
posted @ 2022-05-16 16:14 小不点灬 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 一开始找不到原因,因为我一直在纠结和官网上写的一样为什么不行,期间我设置了offset也不行,立即加载去掉在onMount里也不行,后来直接在van-list 中直接加上 height: 200px; overflow: scroll;奇迹发现竟然可以了。开始思考然后把这个样式不断往上一级加,都是可 阅读全文
posted @ 2022-04-12 21:45 小不点灬 阅读(1433) 评论(0) 推荐(0) 编辑
摘要: 1.首先下载需要的包(有些是运行依赖包) yarn add autoprefixer -S yarn add amfe-flexible@2.2.1 postcss-pxtorem@5.5.1 -S -D 2.在项目根目录下创建一个postcss.config.js文件,配置内容如下 // impo 阅读全文
posted @ 2022-04-09 16:20 小不点灬 阅读(722) 评论(0) 推荐(0) 编辑
摘要: 1.element 2.0 最新版本按需自动引入 1.1注意:由于安装官网的方法用插件按需自动引入的时候,css会报错 无法找到当前的引入组件的scss样式。后来百度,将element-plus的版本降低成1.多的时候运行正常,但是新的问题出现了,在对项目打包的时候,会发现element.js文件的 阅读全文
posted @ 2022-03-18 15:56 小不点灬 阅读(2857) 评论(0) 推荐(1) 编辑
摘要: 1.vue3 的使用,需要安装最新版的i18n,安装一般在"^9.1.9" npm install vue-i18n@next 或 yarn add vue-i18n@next 2.在使用之前需要先创建语言的文件夹,并将其导出,例如 langs可以放入你想要变化的任何语言,不止中文和英文,文件的内容 阅读全文
posted @ 2022-03-18 15:41 小不点灬 阅读(1426) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页