發(fā)表日期:2014-10 文章編輯:小燈 瀏覽次數(shù):3311
模板內(nèi)置對Head進(jìn)行了簡單的封裝
<!--headtitle=…css=…js=…incjs=…excludejs=…close=…h(huán)tml5=…-->
我們建議您使用我們內(nèi)置的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>
參數(shù)解析:
在內(nèi)置js的基礎(chǔ)上增加擴(kuò)展JS,等同于
{url ctrl=js ext=要擴(kuò)展的JS /}
優(yōu)先JS目錄下的js,找不到后,會查找framework/js/下的js,如果還是找不到,就不加載
includejsextjs在內(nèi)置js的基礎(chǔ)上刪除不用的js,等同于
{url ctrl=js _ext=要刪除的js /}
此項(xiàng)常配合config.global.php下的參數(shù):autoload_js
也可以通過config.global.php下配置相應(yīng)的excludejs
html5日期:2018-09 瀏覽次數(shù):4121
日期:2014-10 瀏覽次數(shù):3447
日期:2014-10 瀏覽次數(shù):3205
日期:2014-10 瀏覽次數(shù):3277
日期:2014-10 瀏覽次數(shù):3337
日期:2014-10 瀏覽次數(shù):3280
日期:2014-10 瀏覽次數(shù):3348
日期:2014-10 瀏覽次數(shù):3310
日期:2014-10 瀏覽次數(shù):3321
日期:2014-10 瀏覽次數(shù):3365
日期:2014-10 瀏覽次數(shù):3528
日期:2014-10 瀏覽次數(shù):3105
日期:2014-10 瀏覽次數(shù):3259
日期:2014-10 瀏覽次數(shù):3397
日期:2014-10 瀏覽次數(shù):3152
日期:2014-10 瀏覽次數(shù):3620
日期:2014-10 瀏覽次數(shù):3198
日期:2014-10 瀏覽次數(shù):3350
日期:2014-10 瀏覽次數(shù):3168
日期:2014-10 瀏覽次數(shù):3470
日期:2014-10 瀏覽次數(shù):3194
日期:2014-10 瀏覽次數(shù):3216
日期:2014-10 瀏覽次數(shù):3216
日期:2014-10 瀏覽次數(shù):3937
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.