以下是本人用时常常弄混淆或忘记的,故此记录下来
显示模态对话框:window.showModalDialog("....");
显示非模态对话框:showModelessDialog("....");
获取触发事件的元素:window.event.scrElement;
//toFixed 小数点后多少位
var n = 32;
//alert(n.toFixed(2));
//toPrecision 总位数
alert(n.toPrecision(5));
typeof(imgBig)!="undefined"//判断imgBig是否未定义