- <input focus={{focus}} />无法自动聚焦
<view class="search-bar"> <view class="v-input-q"><input type="text" class="input-q" focus="{{searchFocused}}"/></view> <button class="btn btn-search" bindtap="openSearch"><text class="glyphicon glyphicon-search"></text></button> <button class="btn btn-location"><text class="glyphicon glyphicon-map-marker"></text></button> </view> Page({ data: { searchFocused:false }, openSearch:function(){ console.log("button tap, focus input"); this.setData({searchFocused:true}); }, //... }); 点击input能聚焦。 但是点旁边的button,focus={{true}} 没法自动聚焦, console能看到 "button tap, focus input" 输出 开发工具里测试是OK的,但是真机预览时没法聚焦。 ======================= Android 7.1.1 微信 6.3.31
2016-12-22 - css ::nth-child() 无法工作
wxss文件: .glyphicon::nth-child(3) { } 编译报错: error at token "nth-child" 6 | } 7 | > 8 | .glyphicon::nth-child(3) { .glyphicon::first-child { } 不报错,但是不起作用 请问是bug,还是本身就不支持?
2016-12-22 - 字体文件无法加载,确认文件是存在的
@font-face { font-family: 'Glyphicons Halflings'; src: url('/assets/fonts/glyphicons-halflings-regular.eot'); src: url('/assets/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('/assets/fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('/assets/fonts/glyphicons-halflings-regular.woff') format('woff'), url('/assets/fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('/assets/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); } 控制台报错 VM884:2 Failed to load font http://1701630871.debug.open.weixin.qq.com/assets/fonts/glyphicons-halflings-regular.woff : the server responded with a status of 404 (HTTP/1.1 404 Not Found) From server 127.0.0.1 文件确实存在的,其他jpg/png图片文件都没问题 是bug,还是限制了这些文件类型?
2016-12-22