标签:
2.1.2 延迟脚本
<script type="text/javascript">
<![CDATA[
function compare(a, b){
if(a<b)
alert("A is less than B");
else if(a>b)
alert("A is greater than B");
else
alsert("A is equal B");
}
]]>
</script>
<body>
<noscript>
<p> 页面需要浏览器支持</p>
</noscript>
</body>
JavaScript系列:《JavaScript高级程序设计》,chapter2, 在html中使用JavaScript
标签:
原文地址:http://www.cnblogs.com/strinkbug/p/5036168.html