上一页 1 ··· 95 96 97 98 99 100 101 102 103 ··· 143 下一页
摘要: 想要实现请在微信客户端打开链接 在代码中加入以下代码即可 其他方法: var useragent = navigator.userAgent; if (useragent.match(/MicroMessenger/i) != 'MicroMessenger') { // 这里警告框会阻塞当前页面继续加载 alert('请在微信客户端打开链接!'); ... 阅读全文
posted @ 2018-07-26 15:20 刘俊涛的博客 阅读(9623) 评论(0) 推荐(0)
摘要: arr1=arr1.concat(arr2) 文章来源:刘俊涛的博客 地址:http://www.cnblogs.com/lovebing 欢迎关注,有问题一起学习欢迎留言、评论。 阅读全文
posted @ 2018-07-11 16:43 刘俊涛的博客 阅读(8788) 评论(0) 推荐(0)
摘要: show-confirm-bar="false"> 不生效怎么办》? 改成 show-confirm-bar = "{{false}}" 欢迎关注,有问题一起学习欢迎留言、评论。 阅读全文
posted @ 2018-07-11 16:36 刘俊涛的博客 阅读(2447) 评论(0) 推荐(0)
摘要: 自定义分享图片 onShareAppMessage: (res) => { if (res.from === 'button') { console.log("来自页面内转发按钮"); console.log(res.target); } else { console.log("来自右上角转发菜单") } return... 阅读全文
posted @ 2018-07-10 16:27 刘俊涛的博客 阅读(6138) 评论(0) 推荐(0)
摘要: php返回json,xml,JSONP等格式的数据 返回json数据: header('Content-Type:application/json; charset=utf-8'); $arr = array('a'=>1,'b'=>2); exit(json_encode($arr)); 注意:如 阅读全文
posted @ 2018-07-10 14:59 刘俊涛的博客 阅读(52683) 评论(2) 推荐(0)
摘要: 微信小程序弹出loading层的两种方法:直接在代码里控制,在wxml文件里布局弹窗loading层,利用条件渲染,在js代码里控制是否显示loading层。 方法一: 加载中... this.setData({ loadingHidden: false }) 方法二: showLoading:function(){ wx.showToast({ ... 阅读全文
posted @ 2018-06-29 14:35 刘俊涛的博客 阅读(4838) 评论(0) 推荐(0)
摘要: wx.navigateBack({//返回 delta:1 }) 方法如下: 一. var pages = getCurrentPages(); var prevPage = pages[pages.length - 2]; //上一个页面 //直接调用上一个页面的setData()方法,把数据存到上一个页面中去 prevPage.setData({ mydata: {a:... 阅读全文
posted @ 2018-06-25 18:35 刘俊涛的博客 阅读(11903) 评论(0) 推荐(0)
摘要: update words set `indexkey` = UPPER(left(word,1)) mysql 取字段内容的第一个字符并大写 用到两个mysql函数: 转换为大写:upper( ) 截取函数:left( str,length ) 文章来源:刘俊涛的博客 地址:http://www.cnblogs.com/lovebing 欢迎关注,有问题一起学习欢迎留言、评论。 阅读全文
posted @ 2018-06-22 15:07 刘俊涛的博客 阅读(4446) 评论(0) 推荐(0)
摘要: 微信小程序 JS判断一个字符串是否包含一个子串函数. //str 字符串,name子串 contains:function(str,name){ if(str.indexOf(name) > -1){ return 1; }else{ return 0; } } ... 阅读全文
posted @ 2018-06-21 16:48 刘俊涛的博客 阅读(5696) 评论(0) 推荐(1)
摘要: 小程序 (node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit. 11 小程序内存泄露 有时候可能是音频或者视频播放时候出现的这样的错误。 我这个是播放音频爆的错误。 可能是接口的问题吧 文章来源... 阅读全文
posted @ 2018-06-14 11:25 刘俊涛的博客 阅读(7235) 评论(1) 推荐(0)
上一页 1 ··· 95 96 97 98 99 100 101 102 103 ··· 143 下一页