美文网首页
MPVue开发小程序采坑实战

MPVue开发小程序采坑实战

作者: 我的名字就这么长 | 来源:发表于2019-01-30 09:58 被阅读12次

1.使用axios发送网络请求
解决办法:https://www.jianshu.com/p/71aa01ebe09c
2.background-img不显示,
解决办法:1)使用img标签绝对定位position:absolute;z-index:-1;(父控件不能指定背景色,否则背景图还是不显示)2)使用网络图片地址url
3.在使用vant-weapp的时候,输入框van-field绑定的value值不会同步更新到data对应的变量,需要添加@change="completeInputMobile"

 completeInputMobile (event) {
        this.mobile = event.mp.detail
      } 

4.img标签必须写成行内样式给height和width,直接属性和内联样式都不生效

待更新...
参考资料:
https://www.jianshu.com/p/8f779950bfd9
https://blog.csdn.net/qq_32678401/article/details/81744424
http://www.bslxx.com/m/view.php?aid=1824

相关文章

网友评论

      本文标题:MPVue开发小程序采坑实战

      本文链接:https://www.haomeiwen.com/subject/ivxajqtx.html