$(document).ready(function() { if (navigator.userAgent.indexOf(".NET CLR") > -1) { } else { alert("因客户端未安装.net运行库!"); } });