步骤:
绑定域名——引入JS文件——权限验证——通过ready接口处理成功验证/通过error接口处理失败验证。
$.ajax({
type : "post",
url : "/getTicket",
data : {
"url" : wxUrl
},
dataType : "json",
success(data){
if(!data){return;}
wx.config({});
wx.error(function(res){
})
},
});