|
index.asp
- <!--#include file="../popasp_2.0/popasp.asp"-->
- <%
- const APP_PATH = "test"
- POP_MVC.run
- Call A_("Index/test")
- %>
- <strong><%=V_("tip")%></strong><br />
- <strong><%=V_("var")%></strong><br />
- <p>
- <%=V_("stress")%>
- </p>
复制代码
IndexAction.class.asp
- <%
- ' 本类由系统自动生成,仅供测试用途
- Class IndexAction
- public Sub index()
- Response.write "<h1 style=""font-size:80px;margin:30px 0 10px 30px;font-family:'微软雅黑';font-weight: normal;"">:)</h1><p style=""line-height:1.8em;font-size: 36px;margin:0 0 0 30px;font-family:'微软雅黑';font-weight: normal;"">欢迎使用 <b>POPASP</b>!</p>"
- end Sub
-
- Public Sub test
- '通过控制器给视图分配变量
- '在POPASP中是通过that.assign方法来分配变量
- that.assign "tip","Hello POPASP"
- that.assign "var","我是一个变量哦"
- that.assign "stress","视频中,忘了说明一点,变量标识是区分大小写的。"
- End Sub
- End Class
- %>
复制代码
注意事项:原生的asp程序一般不区分大小写,此框架部分位置区分,邱嵩松也建议大家养成区分习惯。因为像js php都是区分的。
一个程序员不能只懂一门语言。 |
|