-

xiyueta.js库 操作ASP代码的xiyuetaASP类 - 入门指南

xiyuetaASP是一个快速解析遍历asp程序代码的JavaScript库。它通过与jQuery语法使用一致的 API 使 asp 程序遍历和操作等工作变得更加简单。xiyuetaASP库是先解析ASP程序文本再操作ASP程序DOM,xiyuetaASP库可以在WEB浏览器里使用,也可以在ASP程序里使用,也可以在nodejs里使用 xiyuetaASP设计的宗旨是“write Less,Do More”,即倡导写更少的代码,做更多的事情。xiyuetaASP的核心特性可以总结为:具有独特的链式语法和短小清晰的多功能接口。

xiyueta

快速上手xiyueta库中操作ASP代码类

如果你将 xiyueta 下载到了本地,那么可将其完整地放置到你的项目目录(或静态资源服务器)
尝试一下>>

  • web代码
  • nodejs代码
  • asp代码
  • 效果
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>Start using xiyueta JS Library</title>
</head>
<body>
 
<!-- Your HTML code -->
 
<script src="http://www.xiyueta.com/js/xiyueta.min.js"></script>
<script>
var asp='<'+'%\nresponse.write("abc")\n%>'
xiyuetaASP.load(asp)
var s=xiyuetaASP().tophp()
$.log(s)
alert(s)
</script> 
</body>
</html>
      
var $ = require('xiyueta')
console.log(xiyuetaASP().parse('<'+'%\nresponse.write("abc")\n%>').tophp());                        
                    
<script  language="javascript" runat="server" src="./dist/asp.xiyueta.min.js"></script> 
<%
console.log(xiyuetaASP("").parse("<" & "%\nresponse.write(""abc"")\n%>").tophp())
%>
                    
<?PHP
echo('abc');
?>
                    

xiyueta - 在每一个细节中,用心做到最好。 作者QQ 313801120