CFML基础

来源:互联网 发布:nginx 根路径转发 编辑:程序博客网 时间:2024/05/18 02:13

先来看看一个简单的代码:
<html>
<head>
<title>一个ColdFusion页<title>
<body>
<strong>Hello</strong>
<br>
<cfoutput>Today's date is #DateFormat(Now())#</cfoutput>
</body>
</html>

上面的代码用到一个标签和两个函数
标签:cfoutput    该标签是用来将动态数据(从数据库获得的数据)返回给WEB页面。
函数:DateFormat() 该函数将Now()函数返回的日期进行格式化
函数:Now() 返回系统当前的日期

待续。。。。