在ASP中response.write方法中可直接使javasctipt函数吗?请高手指教。
<!--#include file="conn.asp"--><%
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.CacheControl = "no-cache"
Set Rs = Server.CreateObject("ADODB.Recordset")
Sql = "Select top 1 * From [Chat] Order By ID Desc"
Rs.Open Sql,conn,1,1
If Not Rs.EOF And Not Rs.BOF Then
Response.Write(escape(Rs("ID")&"§"&Rs("Talk")&"№"&Rs("SendTime")))
End If
Rs.Close
Set Rs = nothing
%>
escape()在vbscript没有这种东西,找来找去好象是javascript
按ASP引用javasctipt脚本必须用<script language="javascript">......</scritp>,哪上面的代码中为什么可直接使用escape()?我是初学者不懂javascript