發(fā)表日期:2014-10 文章編輯:小燈 瀏覽次數(shù):3356
模板內(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,找不到后,會(huì)查找framework/js/下的js,如果還是找不到,就不加載
includejsextjs在內(nèi)置js的基礎(chǔ)上刪除不用的js,等同于
{url ctrl=js _ext=要?jiǎng)h除的js /}
此項(xiàng)常配合config.global.php下的參數(shù):autoload_js
也可以通過config.global.php下配置相應(yīng)的excludejs
html5日期:2018-09 瀏覽次數(shù):4163
日期:2014-10 瀏覽次數(shù):3493
日期:2014-10 瀏覽次數(shù):3247
日期:2014-10 瀏覽次數(shù):3330
日期:2014-10 瀏覽次數(shù):3384
日期:2014-10 瀏覽次數(shù):3323
日期:2014-10 瀏覽次數(shù):3397
日期:2014-10 瀏覽次數(shù):3355
日期:2014-10 瀏覽次數(shù):3380
日期:2014-10 瀏覽次數(shù):3410
日期:2014-10 瀏覽次數(shù):3576
日期:2014-10 瀏覽次數(shù):3148
日期:2014-10 瀏覽次數(shù):3297
日期:2014-10 瀏覽次數(shù):3450
日期:2014-10 瀏覽次數(shù):3194
日期:2014-10 瀏覽次數(shù):3723
日期:2014-10 瀏覽次數(shù):3236
日期:2014-10 瀏覽次數(shù):3390
日期:2014-10 瀏覽次數(shù):3210
日期:2014-10 瀏覽次數(shù):3531
日期:2014-10 瀏覽次數(shù):3249
日期:2014-10 瀏覽次數(shù):3273
日期:2014-10 瀏覽次數(shù):3257
日期:2014-10 瀏覽次數(shù):3974
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.