<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New Web Project</title>
<script language="JavaScript" src="add.js"/>
<script type="text/javascript">
var c = add(1, 5);
alert(c);
</script>
</head>
<body>
</body>
</html>function add(a, b){
return (a + b);
}
运行后无任何显示,请教如何解决
http://kb.cnblogs.com/a/1577069/
http://dancewithnet.com/2007/03/22/order-of-execution-of-javascript-on-web/如果还未能解决的话,那请恕我爱莫能助了,呵呵!!!
觉得不是引入文件问题
经过ie,firefox,google测试均通过,如果不行,LZ请清理缓存