window.onload = function(){
	try{
		if(test && typeof(test) == "function"){
			test();
		}
	}catch(e){
		alert("方法不存在");
	}
}
function test(){
  alert("我是test()方法");
}

  

相关文章:

  • 2022-12-23
  • 2021-11-11
  • 2022-02-23
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案