摘要: //实现指定多少时间后执行callback const wait = (delay,callback) => { let p = new Promise((res,rej)=>{ setTimeout(()=>{ res(callback) },delay) }).then((callback)=> 阅读全文
posted @ 2021-10-27 09:23 石头记1 阅读(53) 评论(0) 推荐(0)
摘要: App.vue <style > /* 修改所有禁用状态的van-field文本颜色 */ .van-field__control:disabled { color: #aaa !important; -webkit-text-fill-color: #aaa !important; } .van- 阅读全文
posted @ 2025-12-24 13:23 石头记1 阅读(3) 评论(0) 推荐(0)
摘要: .loader { position: relative; width: 2.5em; height: 2.5em; transform: rotate(165deg); } .loader:before, .loader:after { content: ""; position: absolut 阅读全文
posted @ 2025-12-16 14:23 石头记1 阅读(3) 评论(0) 推荐(0)
摘要: .errBox{ font-size: 12px; position: absolute; top:40px; color: #ff0000; border:1px solid #ff0000; width:120px; line-height:22px; text-align:center; ba 阅读全文
posted @ 2025-10-05 10:56 石头记1 阅读(5) 评论(0) 推荐(0)
摘要: let data = [ {id:1,value:'a'}, {id:1,value:'ab'}, {id:1,value:'abc'}, {id:1,value:'abcd'}, {id:2,value:'e'}, {id:2,value:'ef'}, {id:3,value:'g'}, {id: 阅读全文
posted @ 2025-09-29 14:15 石头记1 阅读(13) 评论(0) 推荐(0)
摘要: //webpack必须采用commonjs写法 let path = require('path'); //专门处理路径用的 console.log(path.resolve('./dist'));//根据当前路径解析出一个绝对路径[E:\GIT\webpack\dist] let HtmlWebp 阅读全文
posted @ 2025-06-24 10:04 石头记1 阅读(9) 评论(0) 推荐(0)
摘要: *{padding:0;margin:0;box-sizing:border-box;} $primary: #409EFF; $primary-hover: #66b1ff; $primary-active: #3a8ee6; $font-size:12px; $border-radius:4px 阅读全文
posted @ 2025-03-31 20:01 石头记1 阅读(19) 评论(0) 推荐(0)
摘要: 黑盒测试BDD(先开发功能再测试是否能实现) 白盒测试TDD(先写测试用例,测试驱动开发) 测试框架:vue/test-utils(vue用) Jest(node模拟dom环境) 测试用例文件:.test.js结尾 .spec.js结尾(vue) npm init -ynpm install jes 阅读全文
posted @ 2025-03-26 10:30 石头记1 阅读(21) 评论(0) 推荐(0)
摘要: Vue.filter('format',function(timer,formatter){ //filter 没有this return moment(timer).format(formatter) }) let vm = new Vue({ el:'#app', data(){ return 阅读全文
posted @ 2025-02-07 14:42 石头记1 阅读(22) 评论(0) 推荐(0)
摘要: .net更新引用: 第一步:ABC_WS -> ****.asmx文件右键“在浏览器中查看” 第二步:ABC_MVC -> Web References -> Basic_WS右键“更新web引用” 创建页面传参: public ActionResult Info() { string curID 阅读全文
posted @ 2025-01-21 10:39 石头记1 阅读(33) 评论(0) 推荐(0)
摘要: <div id="sxt" style="width:335px;height:300px;position: relative;"></div> <div id="paiZhao" style="display: none;"> <a href="javascript:void(0)" class 阅读全文
posted @ 2025-01-10 14:32 石头记1 阅读(32) 评论(0) 推荐(0)