Why are template divs showing as “:hidden” in afterRender?
问题 Why are template divs showing as ":hidden" in afterRender? Here's the code: <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> <script src="js/jquery.tmpl.js"></script> <script src="js/knockout-1.2.1.debug.js"></script> <script> $(document).ready(function() { m = function (name) { this.name = name; } viewModel = { a : ko.observableArray(), sparkie : function (elements) { div = elements[0]; console.log($(div).is(':hidden')); }, } ko