摘要:
https://www.cnblogs.com/tiedaweishao/p/7493971.html 阅读全文
摘要:
encodeURIComponent来编码 和 decodeURIComponent来解码 https://blog.csdn.net/dx18520548758/article/details/79985594 阅读全文
摘要:
网上找了一圈又一圈,结果答案还是在官方文档里,还是要看文档啊 https://github.com/vuejs/jsx#directives (这个详细说了vue那些模板在jsx中怎么用) 阅读全文
摘要:
Object.assign() 只是一级属性复制,比浅拷贝多深拷贝了一层而已。 json.parse()就有很多了,请移步 https://blog.csdn.net/u013565133/article/details/102819929 阅读全文
摘要:
npx create-ract-app 项目名称 --template typescript 阅读全文
摘要:
防抖:个人理解就是 在一段时间内多次调用一个方法只能执行一次,且执行的方法是最后一次调用的传参内容 cosnt debunce = function(fun,delay){ let val = null; if(vall){ cleartTimeOut(val) } val =setTimeOut( 阅读全文
摘要:
##1.和connet一样,使用provider包裹整个项目 const store = createStore(rootReducer) ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getEleme 阅读全文
摘要:
##1. 声明 .d.ts文件 在项目文件夹声明一个文件夹**.d.ts在里面添加 declare module '*.css' { const css:{[key: string]: string}; export default css ; } 记得样式文件后缀为.module.css 不然有时 阅读全文
摘要:
在TypeScript中,typeof操作符可以用来获取一个变量或对象的类型。 复制代码 interface Person { name: string; age: number; } const sem: Person = { name: "semlinker", age: 30} type Se 阅读全文