Copy Code code as follows:
var $d = document;
function $i (s) {return $d. getElementById (s);}
var _jsc={}
_jsc.client= (function () {
var t={};
var b=navigator.useragent.tolowercase ();
T.isopera= (B.indexof (' opera ') >-1)
T.isie= (B.indexof (' msie ') >-1)
T.isff= (!t.isopera&&!t.isie&&b.indexof ("Firefox") >-1);
return t;
})()
_jsc.util= (function () {
var t={}
T.addevent=function (o,e,f) {
if (_jsc.client.isie) {
O.attachevent ("on" +e,f)
}else{
O.addeventlistener (E,f,fasle);
}
return True
}
return t;
})();
Window.onload=function () {_jsc.util.addevent (document, "click", ShowMsg ("Z", "D")}
_jsc.util.addevent (document, "click", Function () {showmsg ("a", "B")})
function ShowMsg ()
{
Alert (typeof arguments)
var dd=[arguments[0],arguments[1]]
var o = {A: ' AA ', b: ' BB ', C: ' CC '};
var o = {};
O=arguments
O=array.prototype.slice.call (arguments,0);
For (var p in O)
{
Alert (o[p]);
}
All properties of the Loop object:
<script>
var o = {A: ' AA ', b: ' BB ', C: ' CC '};
For (var p in O)
{
Alert (eval ("O." + p));
}
</script>
All elements of the loop array:
<script>
var arr = [' 11 ', ' 22 ', ' 33 '];
for (var i in arr)
{
Alert (Arr[i]);
}
</script>