iOS8上/ iphone
设置
时<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js"></script>
<script>
function funk() {
var myarr = new Array();
var kids = document.getElementById("mydiv").children;
for(var i = 0; i < kids.length; i++) {
document.write(kids[i].value + "<br>");
}
}
</script>
</head>
<body>
<button type="button" id="add">Add some</button>
<button type="button" id="rem">Remove</button>
<script>
var MyView =vBackbone.View.extend({
tagName:'div',
id:'mydiv',
render: function() {
this.$el.html("<input type='text' class='clickable' /><br>");
return this;
}
});
var v = new MyView();
$('body').append(v.render().el);
$("#add").click(function() {
$("#mydiv").append("<input type='text' class='clickable2' /><br>");
});
$("#rem").click(function() {
$(".clickable2:last-of-type").remove();
});
</script>
<button type="button" onclick="funk()">Submit</button>
</body>
</html>
如果还设置
navigationbar.translucent = yes;
pushViewController,导航栏右上角显示黑色。
=======================
blueVC.hidesBottomBarWhenPushed = yes;
这种方法会导致推进进程tabbar消失。