- 博客(6)
- 收藏
- 关注
原创 uni-app封装网络请求
uni-app封装网络请求return new Promise (function(res,rej){ return uni.request({ url: 'dpc/' + url, //dpc/ method: method, data: data, header: {token: uni.getStorageSync('token')}, success: (rec)=>{ res(rec) }, fail: (err)=>{ uni.s
2021-05-14 17:09:38
127
原创 js原生请求
function api(url,fn){let xhr = new XMLHttpRequestxhr.open(‘POST’, url, true)xhr.setRequestHeader(“Content-Type”,“application/x-www-form-urlencode”);xhr.onreadystatechange = function () {if(xhr.readyState == 4 && (xhr.status == 200 || xhr.statu
2020-11-19 11:47:15
107
原创 2020-09-02
async lookClerk(id,index){let row = this.tableData[ index ]; let temp = { ...row, showClerk: true, clerkNum: 0, } const { success, body } = await api.SYS_USER_findClerk({ id: id }) if(success){ temp.clerkNum = body;
2020-09-02 15:51:19
86
原创 调用高德地图api
**调用高德地图apimain.js:import VueAMap from ‘vue-amap’Vue.use(VueAMap);VueAMap.initAMapApiLoader({key: ‘213fefcfed9d370602c53d52b9029307’,plugin: [‘AMap.Autocomplete’, ‘AMap.PlaceSearch’, ‘AMap.Scale’, ‘AMap.OverView’, ‘AMap.ToolBar’, ‘AMap.MapType’, ‘A
2020-09-02 10:13:29
380
原创 记录一下uni-app里面关于scroll-view标签里面scroll-into-view一直报错t.group is not a function的问题!
记录一下uni-app里面关于scroll-view标签里面scroll-into-view一直报错t.group is not a function的问题!scroll-into-view 不能使用中文 a+中文 都会报这个错
2020-07-01 15:36:05
1333
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人