摘要: thinkphp 的项目中指定了common/function.php的函数是公用函数。 不但php页面可以使用,模板文件也可以使用: ztrs3是没有在任何地方提前声明的。直接写在模板文件即可。 阅读全文
posted @ 2016-03-02 16:05 绿尘枫 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-03-02 11:14 绿尘枫 阅读(245) 评论(0) 推荐(0) 编辑
摘要: <?php header("content-type:text/html;charset=utf8"); $score=70; switch($score) { case $score>=90 && $score<=100: echo "优秀<br>"; break; case $score>=80 阅读全文
posted @ 2016-03-02 10:48 绿尘枫 阅读(5145) 评论(0) 推荐(0) 编辑