随笔分类 -  1-react

摘要:https://www.cnblogs.com/fangsmile/p/14239529.html { "compilerOptions": { /* Basic Options */ "target": "es5" /* target用于指定编译后js文件里的语法应该遵循哪个JavaScript的 阅读全文
posted @ 2021-07-12 14:47 JIN__JIN 阅读(957) 评论(0) 推荐(0)
摘要:https://codingdict.com/questions/77442 https://codepen.io/catthr/pen/pddWzo class NameForm extends React.Component { constructor(props) { super(props) 阅读全文
posted @ 2021-05-19 15:18 JIN__JIN 阅读(357) 评论(0) 推荐(0)
摘要:一个文件中写了2个组件,export default {class1, class2}, 使用的时候报错 组件代码A class class1 extends React.Component {...} class class2 extends React.Component {...} expor 阅读全文
posted @ 2021-02-07 15:30 JIN__JIN 阅读(453) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_43945983/article/details/88294052 解决方案:安装依赖包 1.执行安装jquery依赖包命令 cnpm install jquery --save 1 2.webpack配置 (1).在项目根目录下的build 阅读全文
posted @ 2020-05-09 10:44 JIN__JIN 阅读(482) 评论(0) 推荐(0)
摘要:参考网址: https://blog.csdn.net/focusdroid/article/details/85381042 链接: 这篇文章:(#*3 and #*4)借鉴@钱锋这位童鞋,如有侵权,联系删除 我的项目是用creat-react-app@2.1.2 创建的,npm run ejec 阅读全文
posted @ 2019-04-08 17:59 JIN__JIN 阅读(5261) 评论(0) 推荐(0)
摘要:1. 空白问题 因为缺少polyfill 在public/index.html 中引入如下js <script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-shim.min.js"></script> <script 阅读全文
posted @ 2019-02-13 14:16 JIN__JIN 阅读(859) 评论(0) 推荐(0)