发表日期:2014-10 文章编辑:小灯 浏览次数:2726
模板内置对Head进行了简单的封装
<!--headtitle=…css=…js=…incjs=…excludejs=…close=…html5=…-->
我们建议您使用我们内置的Head来编写代码,该代码解析成HTML如下:
XHTML版:
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><metahttp-equiv="X-UA-Compatible"content="IE=Edge,chrome=1"><metahttp-equiv="Pragma"content="no-cache"/><metahttp-equiv="Cache-control"content="no-cache,no-store,must-revalidate,max-age=3"/><metahttp-equiv="Expires"content="Mon,26Jul199705:00:00GMT"/><metaname="renderer"content="webkit"><metaname="author"content="phpok,admin@phpok.com"/><metaname="license"content="LGPL"/><metaname="keywords"content="{$seo.keywords}"/><metaname="description"content="{$seo.description}"/><title><!--if$title-->{$title}-<!--/if-->{$config.title}<!--if$seo.title-->-{$seo.title}<!--/if--></title><basehref="{$sys.url}"/><scripttype="text/javascript"src="{urlctrl=js/}"charset="utf-8"></script><linkrel="stylesheet"type="text/css"href="css/style.css"/><scripttype="text/javascript"src="js/global.js"charset="UTF-8"></script></head>
HTML5版:
<!DOCTYPEhtml><html><head><metacharset="utf-8"/><metahttp-equiv="X-UA-Compatible"content="IE=Edge,chrome=1"><metahttp-equiv="Pragma"content="no-cache"/><metahttp-equiv="Cache-control"content="no-cache,no-store,must-revalidate,max-age=3"/><metahttp-equiv="Expires"content="Mon,26Jul199705:00:00GMT"/><metaname="renderer"content="webkit"><metaname="author"content="phpok,admin@phpok.com"/><metaname="license"content="LGPL"/><metaname="keywords"content="{$seo.keywords}"/><metaname="description"content="{$seo.description}"/><title><!--if$title-->{$title}-<!--/if-->{$config.title}<!--if$seo.title-->-{$seo.title}<!--/if--></title><basehref="{$sys.url}"/><scripttype="text/javascript"src="{urlctrl=js/}"charset="utf-8"></script><linkrel="stylesheet"type="text/css"href="css/style.css"/><scripttype="text/javascript"src="js/global.js"charset="UTF-8"></script></head>
参数解析:
在内置js的基础上增加扩展JS,等同于
{url ctrl=js ext=要扩展的JS /}
优先JS目录下的js,找不到后,会查找framework/js/下的js,如果还是找不到,就不加载
includejsextjs在内置js的基础上删除不用的js,等同于
{url ctrl=js _ext=要删除的js /}
此项常配合config.global.php下的参数:autoload_js
也可以通过config.global.php下配置相应的excludejs
html5日期:2018-09 浏览次数:3503
日期:2014-10 浏览次数:2856
日期:2014-10 浏览次数:2642
日期:2014-10 浏览次数:2665
日期:2014-10 浏览次数:2728
日期:2014-10 浏览次数:2675
日期:2014-10 浏览次数:2726
日期:2014-10 浏览次数:2725
日期:2014-10 浏览次数:2689
日期:2014-10 浏览次数:2793
日期:2014-10 浏览次数:2942
日期:2014-10 浏览次数:2508
日期:2014-10 浏览次数:2657
日期:2014-10 浏览次数:2676
日期:2014-10 浏览次数:2562
日期:2014-10 浏览次数:2758
日期:2014-10 浏览次数:2622
日期:2014-10 浏览次数:2819
日期:2014-10 浏览次数:2597
日期:2014-10 浏览次数:2653
日期:2014-10 浏览次数:2551
日期:2014-10 浏览次数:2595
日期:2014-10 浏览次数:2651
日期:2014-10 浏览次数:3338
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.