小编ato*_*gfr的帖子

iOS 10 Safari在DOM中不再使用<select>元素

使用此链接,您可以重现该错误.

https://jsfiddle.net/pw7e2j3q/

<script>
$( "#test" ).change(function() {
  $("#test").remove();
  var combo = $("<select></select>").attr("id", "test2").attr("name", "test");
  combo.append("<option>New One</option>");
  $("#App").append(combo);
});

$("#click").click(function(){
  $("#App").remove();
})
</script>
Run Code Online (Sandbox Code Playgroud)

如果单击某个<select>元素并将其从dom中删除,则在此之后单击链接测试.您应该看到旧<select>元素弹出以供选择.

是否有一些黑客来解决这个问题?

safari ios10

7
推荐指数
1
解决办法
1594
查看次数

在heroku上安装node-qrcode

我有问题在heroku上安装这个包.有办法吗?

我看到这是canvas模块的问题,但我不知道该怎么做.

这是heroku上的安装日志.我不知道如何获得更多:

npm ERR! canvas@0.12.1 preinstall: `node-waf configure build`
       npm ERR! `sh "-c" "node-waf configure build"` failed with 1
       npm ERR! 
       npm ERR! Failed at the canvas@0.12.1 preinstall script.
       npm ERR! This is most likely a problem with the canvas package,
       npm ERR! not with npm itself.
       npm ERR! Tell the author that this fails on your system:
       npm ERR!     node-waf configure build
       npm ERR! You can get their info via:
       npm ERR!     npm owner ls canvas
       npm ERR! …
Run Code Online (Sandbox Code Playgroud)

heroku node.js

5
推荐指数
1
解决办法
430
查看次数

标签 统计

heroku ×1

ios10 ×1

node.js ×1

safari ×1