以下是本人用时常常弄混淆或忘记的,故此记录下来

显示模态对话框:window.showModalDialog("....");

显示非模态对话框:showModelessDialog("....");

获取触发事件的元素:window.event.scrElement;

 //toFixed 小数点后多少位
        var n = 32;
        //alert(n.toFixed(2));
        //toPrecision 总位数
        alert(n.toPrecision(5));

typeof(imgBig)!="undefined"//判断imgBig是否未定义

 

相关文章:

  • 2022-02-11
  • 2021-05-08
  • 2021-12-30
  • 2021-12-23
  • 2021-04-22
  • 2021-05-18
猜你喜欢
  • 2021-11-04
  • 2021-07-13
  • 2021-05-21
相关资源
相似解决方案