- 博客(4)
- 收藏
- 关注
原创 vue 解决跨域问题
在config.js文件中(如果没有就自己创建一个在src的根目录下) 修改 proxyTable中的内容 module.exports = { dev: { proxyTable: { '/api': { target: 'http://localhost:7001',//后端接口地址 changeOrigin: true,//是否允许跨越 pathRewrite
2021-01-06 10:08:59
228
原创 vue props传值
父组件通过props 把值传递给子组件 在子组件内部不能直接修改父组件传递过来的值------------- 子组件可以通过 this.$emit(“方法”); 让父组件来修改值 子组件内 父组件内 methods中
2020-12-10 16:34:08
214
原创 uni-app 跳转外链
toOutLink(item){ let str = item.VIDEO_URL.replace(/^\s+|\s+$/g, ""); if (str.slice(0, 4) === 'http') { //#ifdef H5 window.location.href = str //#endif // #ifdef APP-PLUS plus.runtime.openURL(str, function(res) { conso
2020-12-10 14:08:13
2403
原创 uni-app scroll-view 区域内上拉事件
<scroll-view scroll-y="true" @scrolltolower="scroll"> </scroll-view> methods中 methods:{ scroll(){ console.log("已经滚动到底部了") } }, 如果无效可以试着给scroll-view加高度
2020-12-09 15:54:55
1233
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅