写了一个超简单的js,可是不知道怎么调用 <html> <script> var mm=function() { alert('555'); } mm();</script> </html> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head><script language="javascript">var mm=function() { alert('555'); } mm();</script><body></body></html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head><script language="javascript">var mm=function() { alert('555'); } mm();</script><body></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> <HEAD> <TITLE> alert </TITLE> </HEAD><script> var mm=function() { alert('555'); } </script> <BODY> <input type="button" value=" 点我我就弹!" onclick="mm()"/> </BODY></HTML> <html> <script> var mm=function() { alert('555'); } window.onload=mm;</script> </html> 还可以在body上用!<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> alert </TITLE> </HEAD> <script> var mm=function() { alert('555'); } </script> <BODY onLoad=mm> </BODY> </HTML> <html> <script> var mm=function() { alert('555'); } window.onload=mm; </script> </html> <html><head><script language="javascript"> function mm() { alert('555'); }</script></head><body onload="mm()"></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> alert </TITLE> </HEAD> <script> var mm=function() { alert('555'); } </script> <BODY> <input type="button" value="測試" onclick="mm()"/> </BODY> </HTML> ps:mm就是函數名 <html> <script> var mm=function() { alert('555'); } mm(); </script> </html> <html> <script> var mm=function() { alert('555'); } window.onload=mm; </script> </html> js获取java后台数据 已知一个div,其中有个图片,想在右上角再插入一个图片,在线等!!!多些 js怎么获取textarea的bottom高度值 问个简单的JAVASCRIPT的问题 怎样从一个.jsp页面中得到的checkbox值传到另一个.jsp页面? Java Script简单问题 怎么有星期计算日期 js的继承问题.... jquery中的.append()出现复制 怎么能在超连接后执行一段JS代码 JS 增行问题 javascript可以设置realplayer超时时间吗?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script language="javascript">
var mm=function()
{
alert('555');
}
mm();
</script>
<body>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script language="javascript">
var mm=function()
{
alert('555');
}
mm();
</script>
<body>
</body>
</html>
<HTML>
<HEAD>
<TITLE> alert </TITLE>
</HEAD>
<script>
var mm=function()
{
alert('555');
}
</script> <BODY>
<input type="button" value=" 点我我就弹!" onclick="mm()"/>
</BODY>
</HTML>
<script>
var mm=function()
{
alert('555');
}
window.onload=mm;
</script>
</html>
<HTML>
<HEAD>
<TITLE> alert </TITLE>
</HEAD>
<script>
var mm=function()
{
alert('555');
}
</script> <BODY onLoad=mm>
</BODY>
</HTML>
<script>
var mm=function()
{
alert('555');
}
window.onload=mm;
</script>
</html>
<html>
<head>
<script language="javascript">
function mm()
{
alert('555');
}
</script>
</head>
<body onload="mm()">
</body>
</html>
<HTML>
<HEAD>
<TITLE> alert </TITLE>
</HEAD>
<script>
var mm=function()
{
alert('555');
}
</script> <BODY>
<input type="button" value="測試" onclick="mm()"/>
</BODY>
</HTML> ps:mm就是函數名
<script>
var mm=function()
{
alert('555');
}
mm();
</script>
</html>
<script>
var mm=function()
{
alert('555');
}
window.onload=mm;
</script>
</html>