好!欢迎访问迷津渡口 现在时间是: 天气 °C ~ °C

迷津渡口

越感到迷惑 越接近真理

emlog自动判断是否加载jQuery

有时候在写插件和模板的时候,为了保证页面加载了jQuery又不会重复加载,需要加判断代码。

<?php
    function checkJquery() {
        echo '<script>!window.jQuery && document.write(\'<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"><\/script>\')</script>';
    }
    addAction('index_head','checkJquery');
?>

上面函数代码的意思是,如果jQuery未加载,则引用baidu的jquery库。最后一句将函数与index_head挂载点连接起来。因此会在<head></head>之间添加引用jQuery代码。

点赞4
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
qgchsmrt
 qgchsmrt 约 7 小时前回复
#124
<a href="http://www.forttr.com/north-face-womens-grey-hoodie-northfaceh">north face womens grey hoodie</a> <a href="http://www.chopkinslaw.com/nike-kyrie-1-blau-orange-schuhek">nike kyrie 1 blau orange</a> <a href="http://www.plusbolivia.com/adidas-superstar-boston-celtics-gr%C3%B8n-trainers-skoi">adidas superstar boston celtics gr酶n trainers</a> <a href="http://www.ahlivv.com/nike-lebron-14-noir-colorful-chaussuresh">nike lebron 14 noir colorful</a> <a href="http://www.bybrettbarner.com/washington-wizards-new-era-nba-triple-gold-9fifty-snapback-cap-hatl">washington wizards new era nba triple gold 9fifty snapback cap</a> <a href="http://www.timowallets.com/air-jordan-eclipse-orange-or-chaussuresh">air jordan eclipse orange or</a>
qgchsmrt http://www.qgchsmrt.com/
bgaddiict
 bgaddiict 2019-03-19 20:41回复
#123
<a href="http://www.taiwanmeinet.com/all-r%C3%B8d-kvinners-nike-air-max-obuvj">all r酶d kvinners nike air max</a> <a href="http://www.talkwithgirl.com/nike-free-run-2-femminile-rosa-scarpel">nike free run 2 femminile rosa</a> <a href="http://www.mamatale.com/kd-8-femmes-vert-violet-chaussuresh">kd 8 femmes vert violet</a> <a href="http://www.strongtale.com/nike-air-max-1-dark-ash-dark-grigio-light-blu-scarpeh">nike air max 1 dark ash dark grigio light blu</a> <a href="http://www.iranpayamco.com/youth-anaheim-ducks-ryan-getzlaf-reebok-orange-alternate-replica-jersey-2-nfli">youth anaheim ducks ryan getzlaf reebok orange alternate replica jersey 2</a> <a href="http://www.hapeid.com/nike-air-max-90-ultra-essential-todas-negro-zapatosh">nike air max 90 ultra essential todas negro</a>
[url=http://www.bgaddiict.com/]bgaddiict[/url]
prformusic
 prformusic 2019-03-18 11:43回复
#122
<a href="http://www.atrapaniapp.com/nike-sb-stefan-janoski-max-dam%C3%A4nner-silber-gelb-schuhei">nike sb stefan janoski max dam盲nner silber gelb</a> <a href="http://www.maplebeyond.com/nike-air-huarache-oro-cielo-azul-zapatosp">nike air huarache oro cielo azul</a> <a href="http://www.collisionsix.com/adidas-neo-honeycomb-bl%C3%A5-lilla-skoi">adidas neo honeycomb bl氓 lilla</a> <a href="http://www.todololitas.com/kvinners-nike-roshe-run-r%C3%B8d-lilla-obuvq">kvinners nike roshe run r酶d lilla</a> <a href="http://www.jcwjrlaw.com/womens-nike-huarache-utility-pink-white-shoesh">womens nike huarache utility pink white</a> <a href="http://www.vstsblog.com/under-armour-curry-one-rosso-nero-scarpei">under armour curry one rosso nero</a>
prformusic http://www.prformusic.com/
funyari
 funyari 2019-03-17 15:06回复
#121
<a href="http://www.candacebenson.com/yeezy-350-boost-alle-schwarz-items-butyf">yeezy 350 boost alle schwarz items</a> <a href="http://www.kodakid.com/air-jordan-14-bleu-sport-scarpec">air jordan 14 bleu sport</a> <a href="http://www.brantfordpark.com/roshe-run-bleu-electric-vert-chaussuresf">roshe run bleu electric vert</a> <a href="http://www.landsmanbook.com/adidas-projoator-powerswerve-jr-butya">adidas projoator powerswerve jr</a> <a href="http://www.moviestellar.com/nike-free-3.0-v5-fusion-rojo-eye-schuhea">nike free 3.0 v5 fusion rojo eye</a> <a href="http://www.djprofi.com/nike-air-huarache-wei%C3%9F-gelb-schuhec">nike air huarache wei脽 gelb</a>
funyari http://www.funyari.com/
emanmoon
 emanmoon 2019-03-16 08:12回复
#120
<a href="http://www.horecasummit.com/mulberry-effie-satchel-large-group-mulberryf">mulberry effie satchel large group</a> <a href="http://www.hntonghetang.com/billig-nike-shox-current-dam%C3%A4nner-gold-sneakerb">billig nike shox current dam盲nner gold</a> <a href="http://www.carlandcodys.com/parajumpers-jacket-bakers-hardware-parajumpersf">parajumpers jacket bakers hardware</a> <a href="http://www.deploygis.com/burberry-charcoal-scarf-scarfr">burberry charcoal scarf</a> <a href="http://www.amitsrl.com/hermes-crocodile-constance-hermesr">hermes crocodile constance</a> <a href="http://www.rahsaskatoon.com/prada-sunglasses-number-puzzles-pradae">prada sunglasses number puzzles</a>
emanmoon http://www.emanmoon.com/
laflammesinc
 laflammesinc 2019-03-15 07:23回复
#119
<a href="http://www.imfunniest.com/ralph-lauren-tote-bag-poloh">ralph lauren tote bag</a> <a href="http://www.emissariesbc.com/hommes-nike-lebron-14-orange-shoesi">hommes nike lebron 14 orange</a> <a href="http://www.partnersspa.com/nike-air-max-90-sneakerboot-blu-bianca-scarpej">nike air max 90 sneakerboot blu bianca</a> <a href="http://www.antirealtor.com/adidas-superstar-blau-and-wei%C3%9F-schuhej">adidas superstar blau and wei脽</a> <a href="http://www.jkjuiceplus.com/new-era-9forty-pittsburgh-hath">new era 9forty pittsburgh</a> <a href="http://www.bkindvending.com/femmes-nike-air-max-tailwind-7-violet-noir-chaussuresh">femmes nike air max tailwind 7 violet noir</a>
laflammesinc http://www.laflammesinc.com/
frissedenkers
 frissedenkers 2019-03-15 02:34回复
#118
<a href="http://www.responsibleny.com/adidas-neo-zapatos-blanco-noise-chaussuresg">adidas neo zapatos blanco noise</a> <a href="http://www.seitaitaotao.com/herren-nike-lunarglide-6-grau-gelb-kurpese">herren nike lunarglide 6 grau gelb</a> <a href="http://www.soaringcow.com/adidas-rose-7-gul-bl%C3%A5-obuva">adidas rose 7 gul bl氓</a> <a href="http://www.toptopprinter.com/ralph-lauren-coats-rosa-verde-polox">ralph lauren coats rosa verde</a> <a href="http://www.etshonline.com/nike-air-foamposite-negro-and-azul-schuhed">nike air foamposite negro and azul</a> <a href="http://www.gracalor.com/nike-air-max-classic-bw-svart-gr%C3%A5-gul-ribbon-scarpec">nike air max classic bw svart gr氓 gul ribbon</a>
frissedenkers http://www.frissedenkers.com/
filmoriental
 filmoriental 2019-03-13 01:28回复
#117
<a href="http://www.dowsadvocate.com/femminile-asics-gel-noosa-tri-9-marina-militare-rosso-scarpei">femminile asics gel noosa tri 9 marina militare rosso</a> <a href="http://www.laflammesinc.com/tampa-bay-rays-new-era-mlb-black-and-white-fashion-59fifty-cap-hath">tampa bay rays new era mlb black and white fashion 59fifty cap</a> <a href="http://www.thisisitnyc.com/adidas-prougeator-lz-trx-fg-tout-noir-chaussuresh">adidas prougeator lz trx fg tout noir</a> <a href="http://www.tuurulz.com/converse-star-player-pro-noir-chaussuresj">converse star player pro noir</a> <a href="http://www.todotecnicos.com/air-jordan-iv-wei%C3%9F-schuhek">air jordan iv wei脽</a> <a href="http://www.xaviersarrate.com/carmelo-anthony-jersey-white-nflh">carmelo anthony jersey white</a>
filmoriental http://www.filmoriental.com/
lottopurchase
 lottopurchase 2019-03-11 20:47回复
#116
<a href="http://www.hilverdatokyo.com/asics-gel-noosa-tri-10-marron-rouge-chaussuresf">asics gel noosa tri 10 marron rouge</a> <a href="http://www.hotellautram.com/nike-free-5.0-2014-s%C3%B8lv-hvid-scarpef">nike free 5.0 2014 s酶lv hvid</a> <a href="http://www.mymusclefood.com/nfl-nickell-robeycoleman-mens-elite-navy-blue-jersey-23-los-angeles-rams-nike-home-vapor-untouchable-nfls">nfl nickell robeycoleman mens elite navy blue jersey 23 los angeles rams nike home vapor untouchable</a> <a href="http://www.oneusabank.com/for-mujer-racing-polo-rl-spain-polot">for mujer racing polo rl spain</a> <a href="http://www.bonodescuento.com/nike-mens-bo-jackson-limited-camo-jersey-oakland-raiders-nfl-34-2018-salute-to-service-nflz">nike mens bo jackson limited camo jersey oakland raiders nfl 34 2018 salute to service</a> <a href="http://www.cphwph.com/air-jordan-retro-13-kvinners-hvit-gull-kurpesd">air jordan retro 13 kvinners hvit gull</a>
lottopurchase http://www.lottopurchase.com/
goodmedusa
 goodmedusa 2019-03-11 12:34回复
#115
<a href="http://www.ptsbarwinslow.com/nike-air-max-97-green-red-shoesl">nike air max 97 green red</a> <a href="http://www.sarhallafk.com/polo-ralph-lauren-mens-bathing-suits-poloh">polo ralph lauren mens bathing suits</a> <a href="http://www.philippikus.com/nike-air-max-270-arrives-in-sort-dusty-cactus-hvid-skok">nike air max 270 arrives in sort dusty cactus hvid</a> <a href="http://www.pngoilgas.com/reebok-gl-6000-marine-gr%C3%BCn-gold-schuheh">reebok gl 6000 marine gr眉n gold</a> <a href="http://www.goficarwash.com/men-nike-air-max-2011-black-yellow-shoesk">men nike air max 2011 black yellow</a> <a href="http://www.getairtijuana.com/nike-air-max-2014-hvid-sort-volt-electric-gr%C3%B8n-skol">nike air max 2014 hvid sort volt electric gr酶n</a>
goodmedusa http://www.goodmedusa.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸