2020年8月27日
摘要: 初始化一个 react 项目 记一个完整的 react + antd-mobile + redux 下载脚手架工具 npm install -g create-react-app 初始化 react 项目: create-react-app project-name 测试运行: 载入刚刚下载的目录: 阅读全文
posted @ 2020-08-27 10:47 爱IT的小狐狸 阅读(523) 评论(0) 推荐(0)
摘要: antd-mobile定制主题 2020-08-26 create-react-app 与 antd-mobile 构建项目,主题不符合,遂改变主题 准备工作: 构建新react项目 create-react-app projrct-name 导入antd-mobile: npm install a 阅读全文
posted @ 2020-08-27 10:30 爱IT的小狐狸 阅读(809) 评论(0) 推荐(0)
  2020年7月7日
摘要: 1. 原生js的Base64方法 encodeURIComponent() 函数可把字符串作为 URI 组件进行编码,有一个必传参数. unescape() 函数可对通过 escape() 编码的字符串进行解码。 // base编码 // value 是编码后的值 // input 是需要编码的值 阅读全文
posted @ 2020-07-07 23:15 爱IT的小狐狸 阅读(401) 评论(0) 推荐(0)
摘要: 错误如下 拿到公司一个小哥哥的代码,一来就报了一堆bug,吓得我先写一篇博客 vue.runtime.esm.js?2b0e:619 [Vue warn]: Duplicate keys detected: '/system'. This may cause an update error. fou 阅读全文
posted @ 2020-07-07 23:02 爱IT的小狐狸 阅读(37311) 评论(0) 推荐(2)
摘要: 小程序手势缩放 利用小程序原生API 可以实现手势缩放的功能 官方链接(预览图片) 具体使用如下: .wxml <image src="{{ imgList }}" class="priceImg" bindtap="previewImage" mode="widthFix"> </image> . 阅读全文
posted @ 2020-07-07 10:21 爱IT的小狐狸 阅读(724) 评论(0) 推荐(0)
  2020年6月10日
摘要: Uncaught (in promise) NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDuplicated", message: "Navigating to current location ("/l 阅读全文
posted @ 2020-06-10 22:15 爱IT的小狐狸 阅读(351) 评论(0) 推荐(0)
摘要: vue-amap使用 1、下载: npm install vue-amap --save 2、使用:(在 main.js中) import VueAMap from 'vue-amap'; Vue.use(VueAMap); // 初始化vue-amap VueAMap.initAMapApiLoa 阅读全文
posted @ 2020-06-10 22:03 爱IT的小狐狸 阅读(2469) 评论(0) 推荐(0)
摘要: 使用 elementUI 的步骤条, 效果图如下: 1、安装 elementUI npm i element-ui -S 在 main.js中引入: import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/inde 阅读全文
posted @ 2020-06-10 21:49 爱IT的小狐狸 阅读(7271) 评论(0) 推荐(0)
摘要: 今天接了甲方爸爸一个需求,要兼容IE浏览器!记录如下 : 我使用 vue-cli 搭建的项目,chorm浏览器一切正常,但是IE浏览器却是一片空白,出现这种问题,是因为缺少 babel-polyfill 处理器的缘故; 1、安装 babel-polyfill npm install babel-po 阅读全文
posted @ 2020-06-10 21:29 爱IT的小狐狸 阅读(1843) 评论(0) 推荐(0)
  2020年6月4日
摘要: 第一步: 第二步: 第三步: 第四步: 第五步: 第六步: 名字不确定,使用变量: $var$ 阅读全文
posted @ 2020-06-04 13:15 爱IT的小狐狸 阅读(240) 评论(0) 推荐(0)