上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: $step < 1 && $step = 5; 等于 if($step < 1) { $step = 5; } 阅读全文
posted @ 2019-10-14 15:34 fm060 阅读(2152) 评论(0) 推荐(0) 编辑
摘要: 连贯动作时使用 class SuperMarry { constructor () { this._currentState = [] this.states = { jump () { console.log('跳跃') }, move () { console.log('移动') }, shoo 阅读全文
posted @ 2019-10-14 15:29 fm060 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 使用情况:输入时间,返回固定的格式 DateUtil: { // 获取date对象 可传字符串 兼容ios safari date (val) { if (!val) return false if (!val.getTime) { if (typeof val 'number') return n 阅读全文
posted @ 2019-10-14 14:24 fm060 阅读(132) 评论(0) 推荐(0) 编辑
摘要: koa获取页面的数据操作数据库 vue在html页面添加第三方ip判断方法 接口传值的接口 阅读全文
posted @ 2019-09-23 15:05 fm060 阅读(218) 评论(0) 推荐(0) 编辑
摘要: // 当前地址 getA () { wx.getLocation({ success: res => { wx.getLocation({ type: 'wgs84', success: res => { this.log = res.latitude + ',' + res.longitude } }) } }) // 腾讯地图 /* this.qqMapSdk.reverseGeocoder( 阅读全文
posted @ 2019-09-18 14:43 fm060 阅读(454) 评论(0) 推荐(0) 编辑
摘要: str为要去除空格的字符串: 去除所有空格: str = str.replace(/\s+/g,""); 去除两头空格: str = str.replace(/^\s+|\s+$/g,""); 去除左空格: str=str.replace( /^\s*/, ''); 去除右空格: str=str.replace(/(\s*$)/g, ""); 阅读全文
posted @ 2019-07-21 12:53 fm060 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1.canvas加载网络图片空白 要先下载图片(图片域名要加入到微信小程序的安全下载域名),然后再加到canvas里面 2.安卓手机微信授权 3.点击事件冒泡 4.如果微信用户的性别没有填写,用户注册时接口要指定默认值,不然程序会报错卡死 阅读全文
posted @ 2019-07-09 17:15 fm060 阅读(145) 评论(0) 推荐(0) 编辑
摘要: export default { // 日期格式化 /** * 将 Date 转化为指定格式的String * 月(M)、日(d)、12小时(h)、24小时(H)、分(m)、秒(s)、周(E)、季度(q)、早午晚(T) 可以用 1-2 个占位符 * 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) * eg: * fo... 阅读全文
posted @ 2019-06-29 13:09 fm060 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 实战使用场景,商城支付有港币,人民币,美元。根据用户的信息,设置币种的符号,在页面获取币种的符号。 let currencySymbol = { currency: '¥', get: function() { return this.currency }, set: function(curren 阅读全文
posted @ 2019-06-29 12:43 fm060 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 调用方式 阅读全文
posted @ 2019-06-28 11:59 fm060 阅读(334) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页