php html dom to jQuery object 工程用到的一个 jQuery 操作

//获得当前操作的DOM对象 $jsData .= "var currentDivContainer = parent.parent.document.frames('mainFrame').document.getElementById('divcontainer{$resourceTreeRecord[0]["ID"]}');"; //将DOM对象转化为jQuery对象 $jsData .= "var currentJqueryDivContainer = jQuery(currentDivContainer);"; if("passed" == $STATE && "2" != intval($RIGHT_LEVEL)){ $jsData .= "currentJqueryDivContainer.children('.icon').addClass('share');"; } else { $jsData .= "currentJqueryDivContainer.children('.icon').addClass('private');"; }

 

你可能感兴趣的:(html,jquery,PHP,object)