【文件属性】:
文件名称:miniappUI:微信小程序前端
文件大小:1.09MB
文件格式:ZIP
更新时间:2021-02-15 15:55:36
JavaScript
miniappUI
微信小程序前端接受管理初步的数据
主要关注index.js中的`getMessage`函数:用来与数据库交互
getMessage: function ( ) {
var that = this ;
wx . request ( {
url : 'http://localhost:8080/news/one' ,
data : '' ,
header : {
'content-type' : 'application/json'
} ,
method : 'GET' ,
dataType : 'json' ,
responseType : 'text' ,
success : function ( res ) {