摘要:
今天再使用calc时发现无法生效,我的写法是: width: calc(100%-100px); 复制代码 页面无效果,加空格后就发现有效果了: width: calc(100% - 100px); 阅读全文
摘要:
https://github.com/ynzy?tab=repositories 阅读全文
摘要:
GetQueryString(name) { let reg = new RegExp("(|&)" + name + "=([&]*)(&|$)", "i"); if(window.location.hash.indexOf("?") < 0){ return null; } let r = wi 阅读全文
摘要:
.box { display: flex; flex-wrap: wrap; justify-content: flex-start; } .box .box-item { width: 100px; margin-bottom: 10px; margin-right: 10px; } .box . 阅读全文
摘要:
当props参数变化时组件才发生更改 const ImplicitSnowy = React.memo(props ⇒ ( implicit memoized component )); useSelector() const result : any = useSelector(selector 阅读全文
摘要:
1.输入框限制字符 限制传空串 maxlength="200" show-word-limit @blur="rejectReason=$event.target.value.trim()" 2.列表多列排列 <div class="item item_block" > <div class="ce 阅读全文
摘要:
vue.config.js css: { loaderOptions: { postcss: { plugins: [ require('postcss-px2rem')({ remUnit: 192 }) ] } }, }, flexable.js (function(win, lib) { va 阅读全文
摘要:
https://github.com/tnfe/TNT-Weekly/ 阅读全文
摘要:
pc-reset PC样式初始化 /* normalize.css */ html { line-height: 1.15; /* 1 / -ms-text-size-adjust: 100%; / 2 / -webkit-text-size-adjust: 100%; / 2 */ } body 阅读全文
摘要:
var ecDo = { /字符串/ //去除空格 type 1-所有空格 2-前后空格 3-前空格 4-后空格 //trim(' 1235asd',1) //result:1235asd trim: function(str, type) { switch (type) { case 1: ret 阅读全文