SOURCE

console 命令行工具 X clear

                    
>
console
jscript=function(){}
jscript.ui=function(){}
jscript.ui.alerts=function(){}
jscript.ui.alerts.showErrorAlert=function(){
  alert('An error occurred');
}
jscript.ui.alerts.MessageDisplayer=function(inMsg){
  this.msg=inMsg;
  this.toString=function(){
    return 'msg='+this.msg;
  }
}
function test(){
  jscript.ui.alerts.showErrorAlert();
 var v =new jscript.ui.alerts.MessageDisplayer('Hello!!');
  alert(v);
}
<input type='button' value='test Alert'  onClick='test()'>

本项目引用的自定义外部资源