在Android和PC / Mac上运行正常。但出于某种原因,当我动态加载iOS上的按钮时,我无法点击它们。似乎没有javascript在动态加载的内容上运行。这是代码,它应该工作:
favbutton = $('<button class = "btn favbutton pull-right btn-lg" data-toggle="popover" data-trigger="manual" data-placement="bottom" data-content="Favorited!"><span class="glyphicon glyphicon-heart" aria-hidden="true" style = "vertical-align:middle"></span></button>');
...
well.append(favbutton);
well.children(".favbutton").on("click", function(event){
//code here, never even reaches it
});