摘要: 小程序(使用triggerEvent实现) 【https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/events.html】 监听事件 触发事件 自定义组件触发事件,需要使用 triggerEvent 阅读全文
posted @ 2019-01-03 13:53 彩泉 阅读(716) 评论(0) 推荐(0) 编辑
摘要: 两者本质区别: AJAX通过xmlHttpRequest对象请求服务器服务器接受请求返数据实现刷新交互 普通http请求通过httpRequest对象请求服务器接受请求返数据需要页面刷新 AJAX请求头会多一个x-requested-with参数,值为XMLHttpRequest 什么是Ajax:A 阅读全文
posted @ 2019-01-03 13:18 彩泉 阅读(4787) 评论(0) 推荐(0) 编辑