摘要: 一、uniapp 1、uniapp.request({ }) uni.request({ url: '/api/index_category/data', method: 'GET', success: res => { console.log(res); }, fail: () => { cons 阅读全文
posted @ 2021-01-06 21:25 潜跃 阅读(3989) 评论(0) 推荐(0) 编辑
摘要: 方法一、spring boot中只用在Controller类上添加一个“@CrossOrigin“注解就可以实现对当前controller 的跨域 访问了,当然这个标签也可以加到方法上。 @CrossOrigin(origins = "http://192.168.1.10:8080", maxAg 阅读全文
posted @ 2021-01-06 21:24 潜跃 阅读(2323) 评论(0) 推荐(0) 编辑
摘要: 这个地址是你把图片上传的地址,如:http://localhost:8080/lunbo/upload 阅读全文
posted @ 2021-01-06 16:18 潜跃 阅读(2123) 评论(0) 推荐(0) 编辑