点我去Gitee
点我去Gitee
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: 把react打包成app的方法以及app打包下载 一.关于react代码如何运行为APP(测试) 1.先用手机开启网络共享 将电脑和手机连接在同一网段 2.运行代码 获取地址 http://xxx.xxx.xxx.xxx,例如我的是http://192.168.42.103:3000 3.在vsco 阅读全文
posted @ 2021-10-16 15:14 biuo 阅读(1724) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/bbsyi/article/details/78781826 build 之后文件很大 webpack打包时要添加NODE_ENV,并且将devtool:'eval-source-map',去除,不然build出来的js特别大,source ma 阅读全文
posted @ 2021-10-16 14:46 biuo 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 原文连接:https://www.cnblogs.com/nuister/p/12496570.html build 出现空白页解决办法 项目执行npm run build后,将打包后的build文件放到 Nginx 配置中。 如果 react-router 路由 使用了 history 模式(即) 阅读全文
posted @ 2021-10-16 14:40 biuo 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Hbuilder WebView 关于APP中的页面返回问题 plus.webview 前言: 最近在做一个react+ant+H5app的APP应用项目。 众所周知,应create-react-app脚手架创建出来的是单页面项目。 在浏览器中,页面通过react-router-dom进行组件渲染, 阅读全文
posted @ 2021-10-16 12:01 biuo 阅读(1501) 评论(0) 推荐(0) 编辑
摘要: 1.价格保留两位小数 wxs 2.跳转页面--单纯页面和导航页面 3.左右滑动和循环嵌套 1.设计左右id并画出界面 2.左侧点击事件:用自定义属性myid获得数字id,并赋值给leftid用于绑定左侧id,赋值给rightid用于绑定右侧id,赋值给leftActiveNum用于修改左侧样式。 3 阅读全文
posted @ 2021-10-16 11:20 biuo 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 原文连接1:https://segmentfault.com/a/1190000019357253 原文连接2:https://www.jianshu.com/p/5bed07073ddd create-react-app 多页面 方法1 https://github.com/maoguijun/m 阅读全文
posted @ 2021-10-16 10:52 biuo 阅读(455) 评论(1) 推荐(0) 编辑
摘要: 原文连接:https://blog.csdn.net/changliangwl/article/details/82703251 js自定义监听事件及触发 <html> <body> <input id="input" > <button onclick="myEvent()">myEvent</b 阅读全文
posted @ 2021-10-16 10:36 biuo 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 原文连接:https://blog.csdn.net/debruyne/article/details/70313371 一、获取url内容 //设置或获取对象指定的文件名或路径。 alert(window.location.pathname); //设置或获取整个 URL 为字符串。 alert( 阅读全文
posted @ 2021-10-16 10:32 biuo 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 原文连接:https://www.jianshu.com/p/b4874462916c 在react中定义、使用全局变量 1.定义 新建一个js文件,写如下代码,定义全局变量 #例如起一个文件名为globalData.js global.全局变量名称= { aaa:'111', bbb:[]', } 阅读全文
posted @ 2021-10-16 10:22 biuo 阅读(8115) 评论(0) 推荐(0) 编辑
摘要: Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#[Object]‘ 原因 import 不能和module.export混用 用了import 只能用export.default 示例 阅读全文
posted @ 2021-09-23 16:44 biuo 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页