when I use these codes, the web is working well:
ComOperate.prototype.initop = function()
{
var op_children = this.$element.find(".mikeoperate").each(function()
{
if($(this).attr("data-initstatus") == "hide")
{
$(this).hide();
}
})
but if I use these codes,the web crash:
var op_children = this.$element.find(".mikeoperate").hide;
for(var pp in op_children)
{
var p = $(op_children[pp]).attr("data-initstatus");
if(p == 'hide')
{
$(op_children[pp]).hide();
}
}
I don't know why