2020年了,这个问题官方依然没有解决
开发者工具wxml代码提示问题![代码]<!-- 信道连接测试 -->[代码][代码] [代码][代码]<[代码][代码]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-05-08