- 博客(7)
- 收藏
- 关注
原创 搭建vue项目
1、安装node.js2、打开命令行工具,检测npm -v与node -v,确认已安装且不为旧版本3、安装淘宝镜像cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org4、安装git5、打开对应文件夹,右击打开 点击git bash here进入6、全局安装vue-cli cnpm install ...
2019-03-02 13:17:18 130
原创 webstorm PX转为rem
file-settings-plugins 搜索 px rem 之后安装安装好后重启,file-other settings-PX2rem 设置比例shift+d px转为remctrl+shift+d 所有一次转为rem
2019-03-01 14:51:48 1359 1
原创 关于对象的super
如:const obj = { 'name' : 'xiaoming' }conset newObj = { say(){ console.log(`my name is ${super.name}`) }//如果写成say:function(){}或者say:()=>{}以上两种都不支持super 无法访问到对象的原型只...
2019-02-24 17:20:18 211
原创 关于JavaScript的instanceof和类数组转为数组
arguments instanceof Array返回falsearguments在不在Array构造函数中(arguments是不是一个数组) arguments是个类数组 将其转为数组方法1:array = Array.prototype.slice.call(arguments)方法2:array = Array.from(arguments) 此时需要属性值...
2019-02-24 15:38:43 227
原创 小程序随笔(关于香港手机号无法接收短信)
时隔一年,又回来了,这次决心把遇到的问题都记录下来小程序问题:香港手机号不能接收到短信短信用的阿里的 有开通港澳台的限制(小程序目前只支持大陆号码)香港手机号为8为,内地为11位待测方法:输入的香港手机号前面加上区号,为11位,似乎不行。。。这次采用的方法是,后端配合,多传一个电话类型phoneType给后端,大陆phoneType为0,香港phoneType为1...
2019-02-21 18:12:08 5846
转载 判断手机端横竖屏
function orient() { //alert('gete'); if (window.orientation == 0 || window.orientation == 180) { $("body").attr("class", "portrait"); orientation = 'portrait'; return false; } else if (window.orientat...
2018-11-15 18:07:46 194
原创 小程序barBAar
在app.json中配置tabBar,"tabBar": { "color":"#333", //tab 上的文字默认颜色 "selectedColor":"orange", //tab 上的文字当前页的颜色 "backgroundColor":"#eee", //tab 的背景色 "position":"bottom", //为之后设icon
2018-01-02 15:13:43 350
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人