<!-- 信道连接测试 --> < view class = "tunnel " > < view class = "tunnel-text uploader-text" > < text bindtap = "doRequest" >请求(是否带有登陆态)</ text > < switch class = "tunnel-switch" bindchange = "switchRequestMode" color = "#007AFF" /> </ view > < view class = "tunnel-text" wx:if = "{{requestResult}}" > < text class = "request-text" >{{'请求结果:' + requestUrl}}</ text > </ view > </ view > <!-- 上传图片测试 --> < view class = "uploader" > < view class = "uploader-text" bindtap = "doUpload" > < text >上传图片</ text > </ view > < view class = "uploader-container" wx:if = "{{imgUrl}}" > < image class = "uploader-image" src = "{{imgUrl}}" mode = "aspectFit" bindtap = "previewImg" ></ image > </ view > </ view > |
刚接触小程序开发,疑问的问题是,在编辑wxml文件时,class=...指定class的时候以及绑定时间的时候比如bindchange="..." 的时候为什么没有代码提示呢?还有wx:if 都没有自动补全和提示
这样如果记性不好,就得来回翻看js和wxss文件了
2020年了,这个问题官方依然没有解决