是否可以(如果可以)将 JavaScript 代码直接写入 ASP 经典文件?
Is it possible (and how if so) to write JavaScript code directly into an ASP classic file?
我想在 ASP 经典文件中创建验证函数.
I want to create validation functions inside an ASP classic file.
ASP 是一种技术,而不是一种语言.您可以使用注册为脚本引擎的任何语言编写您的 ASP 页面.所以你可以使用VBScript,Javascript,Perl,...如果你的服务器中注册了脚本引擎,你可以使用它.
ASP is a technology, NOT a language. You can write your ASP pages in any language which is registered as a Scripting Engine. So you can use VBScript, Javascript, Perl, ... if there is a scripting engine registered in your server, you can use it.
怎么样?像这样!
<%@ Language= "Javascript" %>
<%
var message = 'This is my message: ';
for (var i = 0, endI = 10 ; i < endI ; i++){
Response.Write( message + ' ' + i + '<br>' ) ;
};
%>
这篇关于在 ASP 经典中编写 JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!