摘要: 一、不同方式创建uniapp的区别 通过cli命令创建出来的uniapp可以在任意编译器(vscode、webstorm等)利用npm run serve或npm run dev:h5运行 通过hbuilder创建的uniapp不可以在其他编译器运行(尝试过迁移项目,失败,会出现插件缺失或路径等各种 阅读全文
posted @ 2021-11-01 10:01 1940 阅读(889) 评论(0) 推荐(0) 编辑
摘要: 存档备用 =A= package.json { "name": "my-fish", "version": "0.1.0", "private": true, "scripts": { "serve": "npm run dev:h5", "build": "npm run build:h5", " 阅读全文
posted @ 2021-10-29 11:25 1940 阅读(672) 评论(0) 推荐(0) 编辑
摘要: webstorm中运行uniapp:npm run dev:h5 错误信息如下: D:\uniapp-Project\cga-miniapp-208\4-Invoice>npm run dev:h5 > 4-Invoice@0.1.0 dev:h5 D:\uniapp-Project\cga-min 阅读全文
posted @ 2021-10-29 11:12 1940 阅读(968) 评论(0) 推荐(0) 编辑
摘要: 设置 --> 插件 --> HTTP代理设置 --> automatic proxy url 里输入http://127.0.0.1:1080,然后重启就可以了 阅读全文
posted @ 2021-10-22 15:55 1940 阅读(946) 评论(0) 推荐(0) 编辑
摘要: 按ctrl+alt+L格式化后,rpx单位前会出现空格,导致样式失效 解决方法: 在 设置-->工具-->File Watchers 配置 Progress位置为sed的所在位置 sed的下载路径(适用windows10 x64):https://gitee.com/Leexinxian/littl 阅读全文
posted @ 2021-10-22 13:42 1940 阅读(562) 评论(0) 推荐(0) 编辑
摘要: // vue <u-input class="input-style m-b-8" v-model="emailAddress" :type="type" :border="border" :trim="trim" @blur="doInput(emailAddress)" placeholder= 阅读全文
posted @ 2021-10-22 13:19 1940 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 手机号码的校验 const phoneReg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/ const phoneStr1 = '18886233487' console.log(phoneReg.test(phoneStr1)) // true const phoneStr2 阅读全文
posted @ 2021-10-22 10:52 1940 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 把bin目录下的文件全部移动到HBuilderX的根目录 阅读全文
posted @ 2021-10-22 10:00 1940 阅读(983) 评论(0) 推荐(0) 编辑
摘要: 存档备用 =A= <template> <view> <view> <image class="img-style" :src="src" alt="demoImg" @click="previewImg()" ></image> </view> </view> </template> <scrip 阅读全文
posted @ 2021-10-19 11:02 1940 阅读(1174) 评论(0) 推荐(0) 编辑
摘要: uniapp 使用<image>标签显示不了图片 主要是src路径问题!!! 若在页面中直接引用,可以正常显示 <image class="img-style" src="../static/logo.png" alt="Img" ></image> 若在组件中引用,当src为静态时直接引用组件的相 阅读全文
posted @ 2021-10-19 10:59 1940 阅读(3548) 评论(0) 推荐(0) 编辑