比如我微信小程序中简单封装了一下网络请求如图: 方法一: module.exports. 1.封装. 2.页面js 用require 引入 然后调用. 方法二: export default.
確定! 回上一頁