例は次のとおりです。
<script> // function:繰り返しコードブロック//グローバル変数がvar itcast = {geteLen:{function(tag){return document.getelementsbytagname(tag); }、id:function(id){return document.getElementById(id); }}、css:{addstyle:function(){}、removestyle:function(){}、addclass:function(){}}} // call itcast.getelen.tag( 'body')[0]; </script>パッケージングとDOM要素の取得の上記の簡単な例は、私があなたと共有するすべてのコンテンツです。参照を提供できることを願っています。wulin.comをもっとサポートできることを願っています。