摘要: 第二种方法 阅读全文
posted @ 2018-12-01 16:07 珺L 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 获取用户信息 wx.getUserInfo({ withCredentials: true, success: function (res) { var nickName = res.userInfo.nickName; var avatarUrl = res.userInfo.avatarUrl; 阅读全文
posted @ 2018-04-12 09:40 珺L 阅读(1123) 评论(0) 推荐(0) 编辑
摘要: 一、input组件的问题: 1、placeholder 文字与 input 的值重叠 暂无解决方法 2、获取焦点 和 失去焦点 时,光标和文字跳动 暂无解决方法 3、当 input 设置为居中对齐时,光标会出现在奇怪的位置 暂无解决方法 4、bindconfirm 事件在失去焦点时也会触发,类似于 阅读全文
posted @ 2017-12-15 15:42 珺L 阅读(203) 评论(0) 推荐(0) 编辑
摘要: user_id:function(){ // 获取本地的user_id var user_id = wx.getStorageSync('user_id'); console.log(user_id); }, user_id:function(){ // 获取本地的user_id var user_ 阅读全文
posted @ 2017-11-30 23:23 珺L 阅读(1991) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message 3 * Digest Algorithm, as defined in RFC 1321. 4 * Version 2.1 Copyrigh 阅读全文
posted @ 2017-11-14 19:30 珺L 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 微信小程序的布局css样式width: fit-content;font-size:20px; /*设置文字字号*/color:red; /*设置文字颜色*/font-weight:bold; /*设置字体加粗*/border:1px solid red;/*添加边框样式(粗细为1px, 颜色为红色 阅读全文
posted @ 2017-11-01 16:29 珺L 阅读(27474) 评论(0) 推荐(0) 编辑
摘要: 单行文本 text{ overflow:hidden; //超出一行文字自动隐藏 text-overflow:ellipsis;//文字隐藏后添加省略号 white-space:nowrap; //强制不换行 } 多行文本text{ display: -webkit-box; word-break: 阅读全文
posted @ 2017-11-01 16:27 珺L 阅读(1277) 评论(0) 推荐(0) 编辑
摘要: a1 a2 a3 a1 a2 a3 /* pages/test/test.wxss */ page{height:100%} .test{ display: flex; justify-content: space-a... 阅读全文
posted @ 2017-09-15 14:31 珺L 阅读(212) 评论(0) 推荐(0) 编辑