- 博客(11)
- 资源 (12)
- 收藏
- 关注
原创 npm run build时报错“caniuse-lite is outdated”
报错Building for production...Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`解决办法npm i autoprefixer@latest npm i caniuse-lite@latest npm i caniuse-lite browserslist@latestvue 里面的依赖安装有的时候不需要全部更新
2020-08-29 13:36:59 12885
转载 yarn 环境安装依赖报错解决方法(info [email protected]: The platform “win32“ is incompatible with this module.)
Installing CLI plugins. This might take a while…yarn install v1.13.0info No lockfile found.[1/4] Resolving packages…[2/4] Fetching packages…info [email protected]: The platform “win32” is incompatible with this module.info “[email protected]” is an optiona
2020-08-21 17:45:53 1564
原创 webpack 公共路径设置的全局变量 __webpack_public_path__
webpack 提供一个非常有用的配置,该配置能帮助你为项目中的所有资源指定一个基础路径。它被称为公共路径(publicPath)。在构建项目时设置路径值开发模式中,我们通常有一个 assets/ 文件夹,它往往存放在和首页一个级别的目录下。这样是挺方便;但是如果在生产环境下,你想把这些静态文件统一使用CDN加载,那该怎么办?想要解决这个问题,你可以使用有着悠久历史的环境变量。比如说,我们设置了一个名为 ASSET_PATH 的变量:import webpack from 'webpack';/
2020-08-21 17:30:21 6333
原创 element-ui 表单验证数字类型提示 xx is not a string
有一个表单 <el-form-item prop="numberpoint" style="width: 100px" :rules="[{ required: integralCheck, message: '请输入积分', trigger: 'blur'}, integralCheck ? { validator: ruleGroup.checkNum500, trigger: 'blur'} : {}
2020-08-21 17:15:00 4778 1
原创 vue-property-decorator使用指南
转载在Vue中使用TypeScript时,非常好用的一个库,使用装饰器来简化书写。1、安装npm install --save vue-property-decorator@Component (from vue-class-component)@Prop@Model@Watch@Emit@Inject@ProvideMixins (the helper function named mixins defined at vue-class-component)2、@Component
2020-08-14 18:03:28 469
原创 typeScript @Component是必须加的吗为什么?
引用了vue-property-decorator这个库之后在ts文件需要这么写import { Component, Vue } from "vue-property-decorator";@Componentexport default class Home extends Vue {}Component 其实是由vue-class-component提供的,装饰器修饰组件,所以当你使用export default class Home extends Vue{}导出声明class的时候,
2020-08-14 17:24:36 2209
原创 typeScript 原始数据类型
typeScript 原始数据类型JavaScript 的类型分为两种:原始数据类型(Primitive data types)和对象类型(Object types)。原始数据类型包括**:布尔值、数值、字符串、null、undefined 以及 ES6 中的新类型 Symbol。**以下介绍前五种原始数据类型在 TypeScript 中的应用布尔let isDone: boolean = false;注意,使用构造函数 Boolean 创造的对象不是布尔值:事实上 new Boolean()
2020-08-14 16:39:08 127
原创 自定义tabbar Component is not found in path “custom-tab-bar/inddex
小程序需要设置自定义tabbar,需要做以下设置1、在app.json 里面设置的tabbar的custom这个变量为ture2、如果报错Component is not found in path “custom-tab-bar/index”注意:报错原因是custom-tab-bar是位于pages同一级别的目录,一定不要放进别的文件夹,里面的文件也请命名为index!!!放进别的文件夹一定会报错,别问我为什么,这是微信自带的规定,至少目前是这样,试错试出来的。如果底部导航组件放到其他文件夹里,
2020-08-14 15:37:35 1120
原创 (小程序)-接口域名证书有问题,导致开发工具调试接口正常,真机接口报错
今天小程序测试,发现一个奇怪问题:电脑开发工具模拟器接口能请求回来数据,但是真机调试不可以,如下红框所示。后来一查,才发现是域名证书有问题
2020-08-13 18:55:08 364
腾讯地图小demo(vue).rar
2020-04-28
三级联动选择地址.rar
2020-04-22
微信小游戏 跳一跳 摘桃子
2020-03-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人