| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 750 人关注过本帖
标题:script使用方法
取消只看楼主 加入收藏
guang2356447
Rank: 2
等 级:论坛游民
帖 子:434
专家分:31
注 册:2007-7-10
结帖率:65.85%
收藏
已结贴  问题点数:10 回复次数:1 
script使用方法
怎么把下面这3行   写成可以调用的形式
<script type="text/javascript">
document.write(document.URL);
</script>


我是这样写并调用的
<script type="text/javascript">
function aa(){
document.write(document.URL);
}
</script>
调用 aa()  但是错误

高手帮帮
搜索更多相关主题的帖子: script 
2010-07-13 13:51
guang2356447
Rank: 2
等 级:论坛游民
帖 子:434
专家分:31
注 册:2007-7-10
收藏
得分:0 
提示语句未结束     18行

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
//不知道给这个有关系没  vbscript
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<script type="text/javascript">
function aa(){
document.write(document.URL);
}
</script>
<table width="192" height="52" border="1" cellpadding="0" cellspacing="0">
<%
aa();    //这个是18行
Set rss=Server.CreateObject("Adodb.RecordSet")
sql="select * from aa"
rss.Open sql,conn,1,1
do while not rss.eof
%>
<tr>
<td><%=rss("id")%></td>
<td><%=rss("name")%></td>
</tr>
<%
rss.movenext
loop
%>
</table>
</body>
</html>


[ 本帖最后由 guang2356447 于 2010-7-13 14:25 编辑 ]
2010-07-13 14:21
快速回复:script使用方法
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011914 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved