摘要: 自定义分享图片 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)