247 {
248 return objid.value;
249 }
250 },
251
252 /**//* 设置指定对象的值,实现可以直接赋值或清除操作
253 @objid 对象ID
254 @inserValue 传入值(可选项 Null:清除该ID的值, 则直接赋值)
255 */
256 SetValue: function(objid,inserValue) {
257 var getTagName = this.Get(objid).tagName.toLowerCase();
258 if (inserValue == null) inserValue = '';
259 if (getTagName == 'input' || getTagName == 'textarea')
260 {
261 this.Get(objid).value = inserValue;
262 }
263 else if (getTagName == 'div' || getTagName == 'sapn')
264 {
265
266 this.Get(objid).innerText = inserValue;
267 }
268 },
269
270 /**//* 拷贝对象值到剪贴板
271 @str 对象值
272 */
273 CopyCode : function (str) {
274 var rng = document.body.createTextRange();
275 rng.moveToElementText(str);
276 rng.scrollIntoView();
277 rng.select();
278 rng.execCommand("Copy");
279 rng.collapse(false);
280 },
281
282 /**//* 显示隐藏一个对象
283 @Objid 对象ID
284 @isshow 具体操作,指定Obj为False : none或者True : block (可选)










