12 2021 档案

摘要:1、初始化项目 npm init 填写基本信息,生成package.json 2、安装依赖包 webpack、babel、react等,webpack、babel工具类 使用npm install --save-dev 安装在"devDependencies"下。 { "name": "wmyyq" 阅读全文
posted @ 2021-12-30 15:06 安静、、、 阅读(228) 评论(0) 推荐(0)
摘要://阻止浏览器默认事件 document.body.addEventListener('touchmove', function (e) { e.preventDefault(); //阻止默认的处理方式(阻止下拉滑动的效果) }, {passive: false}); //passive 参数不能 阅读全文
posted @ 2021-12-08 15:17 安静、、、 阅读(392) 评论(0) 推荐(0)