wxml页面如下:
bind:tap绑定了handleAjax事件,js页面如下:
点击按钮,运行成功输出data
报错:
小程序 (qq.com)https://mp.weixin.qq.com/
再次点击按钮ajax
运行成功: