- 博客(12)
- 收藏
- 关注
原创 uniapp开发小程序问题汇总
1.uni-app在小程序开发者工具运行:TypeError: Cannot read property ‘forceUpdate‘ of undefined问题是因为uniapp项目没配置小程序appid解决方法:
2022-02-28 10:37:00
723
原创 echarts实现水滴效果
1.安装依赖npm install echarts@5.2.0 --save-devnpm install echarts-liquidfill@3.0.0 --save-dev完整的例子:<template> <div id="demoChart"></div></template><script>import * as echarts from 'echarts'import 'echarts-liquidfil.
2021-12-03 16:42:29
1253
2
原创 vue pc端适配
在项目中用到UI给出设计图尺寸是1920x1080,如果直接在样式中使用会导致比想象中要大很多,这样需要做px转换为rem来适应屏幕,网上查了很多方法,下面是总结出的一种方法,亲测有效1.安装依赖 postcss-px2rem-exclude npm installpostcss-px2rem-exclude --save-dev2.创建个rem.js文件,用于计算文档字体大小,我是放到utils下面的看个人习惯// 设置 rem 函数function setRem() { ..
2021-07-12 10:14:28
378
原创 查找地址栏参数
查找地址栏参数function getQueryString(name) {varreg =newRegExp("(^|&)"+ name +"=([^&]*)(&|$)","i");varr = window.location.search.substr(1).match(reg);if(r !=null)returnunescape(r[2]);returnnull;...
2021-04-14 16:44:54
89
原创 vue 自定义组件
第一步:编写loading.js文件,代码如下import Vue from 'vue'import loadingComponent from '@/components/loading/loading.vue'const LoadingConstructor = Vue.extend(loadingComponent);const instance = new LoadingConstructor({ el: document.createElement('div')})instanc.
2020-12-08 11:40:12
126
原创 angular nginx 本地配置代理 (mac)
1.安装homebrew (mac 包管理工具)在终端输入命令:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"测试是否安装成功:brew -v2.安装nginxbrew install nginx测试是否安装成功: nginx -v3.启动nginxbrew services start nginx在浏览器输入localh...
2020-10-16 11:56:47
452
原创 cordova build android 失败
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.Error: cmd: Command failed with exit code 1 Error output:FAILURE: Build failed with an exception.* What went wrong:A problem occurred configu
2020-10-12 11:03:16
1417
1
原创 Java jdk环境变量配置
1.我的电脑右键->高级系统设置->环境变量->系统变量2.创建:变量名称=JAVA_HOME,变量值= jdk路径(F:\installFiles\java\jdk1.8.0_144)3.path->新增%JAVA_HOME%\bin4.最后可以通过Win+R在运行中输入cmd在命令提示符窗口输入java -version 查看当前安装版本...
2020-10-09 16:33:38
126
原创 angular 错误汇总以及解决方法
报错提示:sentry In ambient enum declarations member initializer must be constant expression.解决方法:因为sentry版本过高导致,只需降低版本就行了
2020-07-02 17:28:52
492
原创 ionic 构建时拷贝一个文件到编译后指定目录
第一步:修改package.json, 定义我们自定义的copy配置文件"config": {"ionic_copy": "./config/copy.config.js"},第二步:在工程根目录下新建config目录,添加copy.config.js文件,文件中内容:module.exports = {copyCropperjs: {src: ["{{ROOT}}/s...
2020-04-18 16:53:36
292
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人