会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
旺仔小裤头
舞台再大,你不上台,永远是个观众
上一页
1
2
3
4
5
6
7
8
下一页
vue 元素定义class
摘要: <template> <div :style="aaa"></div> </template> <script> aaa:{ width:document.body.clientWidth, height:'100px', border:'1px solid red' }, aaa:{ width:
阅读全文
posted @ 2019-09-17 17:40 旺仔小裤头
阅读(469)
评论(0)
推荐(0)
编辑
小程序 用户授权登录
摘要: 1.index.wxml中 <button open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button> 2.index.js中 getUserInfo: function(e) { console.log(e) ap
阅读全文
posted @ 2019-09-06 15:22 旺仔小裤头
阅读(147)
评论(0)
推荐(0)
编辑
原生小程序 iconfont引用及使用
摘要: 1.将iconfont图标代码下载下来 2.解压后找到iconfont.ttf文件,打开https://transfonter.org/转化下 3.在utils下新建个iconfont.wxss(位置,命名自己根据喜好来) 转化后找到stylesheet.css,将里面的代码全部复制到iconfon
阅读全文
posted @ 2019-09-05 15:46 旺仔小裤头
阅读(1020)
评论(0)
推荐(0)
编辑
vue vuex全局变量
摘要: 1.使用命令 :npm install vuex --save 2.src下新建个文件store,在store下再建个index.js: import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) const store = new Vue
阅读全文
posted @ 2019-09-05 11:34 旺仔小裤头
阅读(3066)
评论(0)
推荐(0)
编辑
原生小程序 变量全局调用
摘要: 第一种方法: 在app.js中声明 globalData: { userInfo: null, nnnnn:1111 } 调用,在指定的js中 const app = getApp() console.log(app.globalData.nnnnn) 第二种方法: 可以像调用方法那样调用变量 gl
阅读全文
posted @ 2019-09-04 15:17 旺仔小裤头
阅读(265)
评论(0)
推荐(0)
编辑
原生小程序 请求方法的封装及调用
摘要: 1.在util.js中写下请求方法 function request(obj.method, obj.url, obj.data) { return new Promise((resolve) => { wx.request({ method: obj.method, url: 'http://17
阅读全文
posted @ 2019-09-04 14:47 旺仔小裤头
阅读(725)
评论(0)
推荐(0)
编辑
vue px直接转化为rem
摘要: 1.命令 npm install postcss-px2rem --save-dev npm install px2rem-loader--save-dev 2.build/utils.js文件 第一步:找到exports.cssLoaders = function (options) {}方法插入
阅读全文
posted @ 2019-09-04 12:08 旺仔小裤头
阅读(268)
评论(0)
推荐(0)
编辑
elementUI 模板搭建及使用
摘要: 1.https://github.com/ElementUI/element-starter下载elementUI模板 2.运行完代码,在浏览器打开,即可看到欢迎页 3.安装element-ui npm i element-ui@next -D
阅读全文
posted @ 2019-09-02 18:41 旺仔小裤头
阅读(5278)
评论(0)
推荐(0)
编辑
radio 使用css修改默认单选样式
摘要: 使用伪元素
阅读全文
posted @ 2019-08-30 10:58 旺仔小裤头
阅读(927)
评论(0)
推荐(0)
编辑
vue 定位
摘要: 1.vue中index.html: <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.3&key=d4332e5adb8b584442266763d20b978c"></script> 2.新建一个js(我习惯建
阅读全文
posted @ 2019-08-23 16:05 旺仔小裤头
阅读(475)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
下一页
导航
博客园
首页
管理