上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页
摘要: axios 基于promise用于浏览器和node.js的http客户端 特点 支持浏览器和node.js 支持promise 能拦截请求和响应 能转换请求和响应数据 能取消请求 自动转换JSON数据 浏览器端支持防止CSRF(跨站请求伪造) 一、安装 npm安装 $ npm install axi 阅读全文
posted @ 2018-08-01 17:30 不完美的完美 阅读(579) 评论(0) 推荐(0)
摘要: 生命周期图示 创建前,创建后,挂载前,挂载后,更新前,更新后,销毁前,销毁后 beforeCreate:function(){ console.log('1 beforeCreate 组件还未被创建'); }, created:function(){ console.log('2 created 组 阅读全文
posted @ 2018-07-31 17:53 不完美的完美 阅读(306) 评论(0) 推荐(0)
摘要: Vue点击切换多个class {{item.text}} import Vue from 'vue' export default{ data:function() { return { items:[ {text: '静安区'}, {text: '宝山区'}, {text: '虹口区'}, {te 阅读全文
posted @ 2018-07-31 15:59 不完美的完美 阅读(5390) 评论(0) 推荐(0)
摘要: 这是我同事写的方法,比官网的简单 调用方法 that.weixin_share({ postUrl: '',//微信分享的php shareData: { title: ,//分享标题 desc: ,//分享描述 imgUrl: ,//分享图标 link: //分享链接 } }); 分装的方法 fu 阅读全文
posted @ 2018-07-31 14:51 不完美的完美 阅读(373) 评论(0) 推荐(0)
摘要: 1、select默认选中项颜色为灰色,选择后变为黑色 <!DOCTYPE html select 元素 .box { width: 100%; height: 100%; text align: center; margin top: 100px; } / select 的默认下拉箭头 / / ie 阅读全文
posted @ 2018-07-25 17:29 不完美的完美 阅读(533) 评论(0) 推荐(0)
摘要: 1.安装vue cli,通过vue v可以查明 安装vue cli步骤 vue init airyland/vux2 projectPath(项目名字) 2.安装依赖模块 方法1:npm install 方法2:npm install registry=https://registry.npm.ta 阅读全文
posted @ 2018-07-25 11:54 不完美的完美 阅读(734) 评论(0) 推荐(0)
摘要: HTML5+API device Device Device模块管理设备信息,用于获取手机设备的相关信息,如IMEI、IMSI、型号、厂商等。通过plus.device获取设备信息管理对象。 对象: networkinfo networkinfo模块用于获取网络信息 networkinfo 常量 C 阅读全文
posted @ 2018-06-15 15:06 不完美的完美 阅读(982) 评论(0) 推荐(0)
摘要: vue点击切换颜色 只能点击一个 <!doctype html 修改资料 类别 类别 保存 {{item.msg}} 最多可选择三项 mui.init() var categroy = new Vue({ el:' categroy', data:{ items:[{ msg: '电影' },{ m 阅读全文
posted @ 2018-06-08 14:34 不完美的完美 阅读(322) 评论(0) 推荐(0)
摘要: mui底部tab固定 头部nav可变 <!DOCTYPE html Hello MUI html, body { background color: efeff4; } / 解决: Unable to preventDefault inside passive event listener due 阅读全文
posted @ 2018-05-29 18:59 不完美的完美 阅读(597) 评论(0) 推荐(0)
摘要: 1.授权绑定微信公众号(微信网页授权) mounted:function() { var uid = tools.cookie.get('id') //cookie缓存微信id if(uid == undefined ){//判断是否登录 var _this = this; var data = t 阅读全文
posted @ 2018-05-15 15:56 不完美的完美 阅读(550) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页