(推荐一个超好的JS函数库)S.Sams Lifexperience ScriptClassLib

2019-06-02 21:22:29于丽

179        return this.Get(ID);
180    },
181    
182    /**//*    删除指定DIV对象
183        @objid        要删除的对象ID
184        返回        Bool 操作结果
185    */
186    DeleteDiv : function (objid)
187    {
188        try
189        {
190            if(this.Get(objid))
191            {
192                var GetParent = this.Get(objid).parentNode;
193                GetParent.removeChild(this.Get(objid));
194                return true;
195            }
196            else
197            {
198                return false;
199            }
200        }
201        catch(e)
202        {
203            return false;
204        }
205    },
206
207    /**//*    获取浏览器对象
208        @id        要获取的对象ID
209        可以使用对象名集合,返回值为对象的集合
210    */
211    Get : function (objid) {
212        if (arguments.length > 1) {
213            for (var i = 0, objids = [], length = arguments.length; i < length; i++)
214              objids.push(this.Get(arguments[i]));
215            return objids;