前端静态资源福利:百度静态JS资源公共库(CDN)

前端的很多静态资源,比如JS,CSS怎么办呢?这时,我们需要一个公共且高速的静态资源托管平台。

这里就推荐百度静态资源公共库,百度静态资源公共库是稳定,快速,全面,开源的国内CDN加速服务。遍布全国各地100+个CDN节点提供加速服务。让开源库享受与百度首页静态资源同等待遇。

如果你在使用jQuery、Bootstrap、backbone、dojo、zepto等各种流行库,一定不要错过百度静态资源公共库。

accounting.js

http://apps.bdimg.com/libs/accounting.js/0.3.2/accounting.min.js

alertify.js

http://apps.bdimg.com/libs/alertify.js/0.3.0/alertify.min.js

amd.loader

http://apps.bdimg.com/libs/amd.loader/0.9.0/amd.loader.js

angular-cookies

http://apps.bdimg.com/libs/angular-cookies/1.2.16/angular-cookies.js

angular-file-upload

http://apps.bdimg.com/libs/angular-file-upload/1.3.1/angular-file-upload.js

angular-material

http://apps.bdimg.com/libs/angular-material/0.10.0-rc4/angular-material.min.js

angular-resource

http://apps.bdimg.com/libs/angular-resource/1.2.16/angular-resource.js

angular-route

http://apps.bdimg.com/libs/angular-route/1.3.13/angular-route.js

angular-translate

http://apps.bdimg.com/libs/angular-translate/2.7.2/angular-translate.js

angular-ui-router

http://apps.bdimg.com/libs/angular-ui-router/0.2.15/angular-ui-router.js

angular.js

http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js

animate.css

http://apps.bdimg.com/libs/animate.css/3.1.0/animate.min.css

async

http://apps.bdimg.com/libs/async/0.9.0/async.js

backbone.babysitter

http://apps.bdimg.com/libs/backbone.babysitter/v0.0.6/backbone.babysitter.js

backbone.js

http://apps.bdimg.com/libs/backbone.js/1.1.2/backbone-min.js

backbone.marionette

http://apps.bdimg.com/libs/backbone.marionette/2.2.0/backbone.marionette.min.js

behave.js

http://apps.bdimg.com/libs/behave.js/1.5.0/behave.js

bjui

http://apps.bdimg.com/libs/bjui/1.2/bjui/bjui-min.js

bluebird

http://apps.bdimg.com/libs/bluebird/1.2.2/bluebird.js

bonsai

http://apps.bdimg.com/libs/bonsai/0.4.5/bonsai.min.js

bootstrap

http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js

bootstrap-glyphicons

http://apps.bdimg.com/libs/bootstrap-glyphicons/1.0/css/bootstrap-glyphicons.css

bootstrap-material

http://apps.bdimg.com/libs/bootstrap-material/0.3.0/js/material.min.js

bootswatch

http://apps.bdimg.com/libs/bootswatch/3.0.0/bootswatch

bucky

http://apps.bdimg.com/libs/bucky/0.2.4/bucky.min.js

camanjs

http://apps.bdimg.com/libs/camanjs/4.1.2/caman.full.min.js

canjs

http://apps.bdimg.com/libs/canjs/2.2.6/can.jquery.min.js

canvasjs

http://apps.bdimg.com/libs/canvasjs/1.4.1/canvas.min.js

chaplin

http://apps.bdimg.com/libs/chaplin/0.11.3/chaplin.min.js

chardin.js

http://apps.bdimg.com/libs/chardin.js/0.1.2/chardinjs.min.js

chart.js

http://apps.bdimg.com/libs/Chart.js/0.2.0/Chart.min.js

chosen

http://apps.bdimg.com/libs/chosen/1.1.0/chosen.jquery.min.js

classlist

http://apps.bdimg.com/libs/classlist/2014.01.31/classList.min.js

cookies.js

http://apps.bdimg.com/libs/Cookies.js/0.4.0/cookies.min.js

crossfilter

http://apps.bdimg.com/libs/crossfilter/1.3.7/crossfilter.min.js

cryptico

http://apps.bdimg.com/libs/cryptico/0.0.1343522940/cryptico.min.js

crypto-js

http://apps.bdimg.com/libs/crypto-js/3.1.2/rollups/md5.js

cubism

http://apps.bdimg.com/libs/cubism/1.6.0/cubism.v1.min.js

curl

http://apps.bdimg.com/libs/curl/0.7.3/curl-for-jQuery/curl.js

d3

http://apps.bdimg.com/libs/d3/3.4.8/d3.min.js

date format

http://apps.bdimg.com/libs/Date Format/1.2.3/date.format.js

datejs

http://apps.bdimg.com/libs/datejs/1.0/date.min.js

dc

http://apps.bdimg.com/libs/dc/1.6.0/dc.min.js

depot

http://apps.bdimg.com/libs/depot/0.1.6/depot.min.js

devexpresschartjs

http://apps.bdimg.com/libs/DevExpressChartJS/13.1.8/dx.chartjs.js

dojo

http://apps.bdimg.com/libs/dojo/1.8.3/dojo.js

draggabilly

http://apps.bdimg.com/libs/draggabilly/1.0.2/draggabilly.pkgd.js

dropzone

http://apps.bdimg.com/libs/dropzone/3.8.4/dropzone.min.js

easyxdm

http://apps.bdimg.com/libs/easyXDM/2.4.17.1/easyXDM.min.js

echarts

http://apps.bdimg.com/libs/echarts/2.1.9/dist/echarts.js

ember-data

http://apps.bdimg.com/libs/ember-data/1.0.0-beta.19.1/ember-data.min.js

ember.js

http://apps.bdimg.com/libs/ember.js/1.13.0/ember.min.js

enquire.js

http://apps.bdimg.com/libs/enquire.js/2.0.0/enquire.min.js

epiceditor

http://apps.bdimg.com/libs/epiceditor/0.2.2/js/epiceditor.min.js

equalize.js

http://apps.bdimg.com/libs/equalize.js/1.0.1/equalize.min.js

eventmaster

http://apps.bdimg.com/libs/eventmaster/2.0.0/eventmaster.min.js

eventproxy

http://apps.bdimg.com/libs/eventproxy/0.2.5/eventproxy.js

ext-core

http://apps.bdimg.com/libs/ext-core/3.1.0/ext-core.js

f2

http://apps.bdimg.com/libs/F2/1.3.3/f2.min.js

fabric.js

http://apps.bdimg.com/libs/fabric.js/1.4.0/fabric.min.js

faker

http://apps.bdimg.com/libs/Faker/0.7.2/MinFaker.js

fancybox

http://apps.bdimg.com/libs/fancybox/2.1.5/jquery.fancybox.pack.js

fastclick

http://apps.bdimg.com/libs/fastclick/1.0.0/fastclick.min.js

favico.js

http://apps.bdimg.com/libs/favico.js/0.3.4/favico.js

fittext.js

http://apps.bdimg.com/libs/FitText.js/1.1/jquery.fittext.min.js

floatlabels.js

http://apps.bdimg.com/libs/floatlabels.js/1.0.0/floatlabels.min.js

flot

http://apps.bdimg.com/libs/flot/0.8.2/jquery.flot.min.js

flowplayer

http://apps.bdimg.com/libs/flowplayer/6.0.4/flowplayer.js

fluidbox

http://apps.bdimg.com/libs/fluidbox/1.2.7/jquery.fluidbox.min.js

fontawesome

http://apps.bdimg.com/libs/fontawesome/4.4.0/css/font-awesome.min.css

frozenui

http://apps.bdimg.com/libs/frozenui/1.3.0/css/frozen.css

fuse.js

http://apps.bdimg.com/libs/fuse.js/1.0.1/fuse.min.js

galleriffic

http://apps.bdimg.com/libs/galleriffic/2.0.1/jquery.galleriffic.min.js

garlic.js

http://apps.bdimg.com/libs/garlic.js/1.2.2/garlic.min.js

grindplayer

http://apps.bdimg.com/libs/GrindPlayer/1.0/GrindPlayer.swf

grindplayercn

http://apps.bdimg.com/libs/GrindPlayerCN/1.0.1/GrindPlayerCN.swf

gumby

http://apps.bdimg.com/libs/gumby/2.6.0/css/gumby.min.css

h5validate

http://apps.bdimg.com/libs/h5Validate/0.8.4/jquery.h5validate.min.js

hallo.js

http://apps.bdimg.com/libs/hallo.js/1.0.4/hallo.js

hammer.js

http://apps.bdimg.com/libs/hammer.js/1.0.10/hammer.min.js

handlebars.js

http://apps.bdimg.com/libs/handlebars.js/2.0.0-alpha.4/handlebars.min.js

handsontable

http://apps.bdimg.com/libs/handsontable/0.16.0/handsontable.full.min.js

headjs

http://apps.bdimg.com/libs/headjs/1.0.3/head.min.js

headroom

http://apps.bdimg.com/libs/headroom/0.5.0/headroom.min.js

highlight.js

http://apps.bdimg.com/libs/highlight.js/9.1.0/highlight.min.js

history.js

http://apps.bdimg.com/libs/history.js/1.8/native.history.min.js

holder

http://apps.bdimg.com/libs/holder/2.3.1/holder.js

html5shiv

http://apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js

humane-js

http://apps.bdimg.com/libs/humane-js/3.0.6/humane.min.js

imagesloaded

http://apps.bdimg.com/libs/imagesloaded/3.0.4/imagesloaded.pkgd.js

imageter

http://apps.bdimg.com/libs/imageter/1.0.1/imageter.front.js

impress.js

http://apps.bdimg.com/libs/impress.js/0.5.3/impress.min.js

instantclick

http://apps.bdimg.com/libs/instantclick/3.0.1/instantclick.min.js

intro.js

http://apps.bdimg.com/libs/intro.js/0.5.0/intro.min.js

jade

http://apps.bdimg.com/libs/jade/1.3.1/jade.min.js

javascript-state-machine

http://apps.bdimg.com/libs/javascript-state-machine/2.0.0/state-machine.min.js

jmpress

http://apps.bdimg.com/libs/jmpress/0.4.5/jmpress.min.js

jquery

http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js

jquery-fullpage

http://apps.bdimg.com/libs/jquery-fullPage/2.7.4/jquery.fullPage.js

jquery-i18n

http://apps.bdimg.com/libs/jquery-i18n/1.1.1/jquery.i18n.js

jquery-lazyload

http://apps.bdimg.com/libs/jquery-lazyload/1.9.5/jquery.lazyload.js

jquery-qrcode

http://apps.bdimg.com/libs/jquery-qrcode/1.0.0/jquery.qrcode.js

jquery-scrollup

http://apps.bdimg.com/libs/jquery-scrollUp/2.1.0/jquery.scrollUp.js

jquery-transit

http://apps.bdimg.com/libs/jquery-transit/0.9.12/jquery.transit.js

jquery.cookie

http://apps.bdimg.com/libs/jquery.cookie/1.4.1/jquery.cookie.js

jquery.infinitescroll.js

http://apps.bdimg.com/libs/jquery.infinitescroll.js/2.0.2/jquery.infinitescroll.js

jquery.number

http://apps.bdimg.com/libs/jquery.number/2.1.6/jquery.number.min.js

jquerymobile

http://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.js

jquerytools

http://apps.bdimg.com/libs/jquerytools/1.2.7/jquery.tools.min.js

jqueryui

http://apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js

js-cookie

http://apps.bdimg.com/libs/js-cookie/2.0.4/js.cookie.js

js-signals

http://apps.bdimg.com/libs/js-signals/1.0.0/js-signals.min.js

js-url

http://apps.bdimg.com/libs/js-url/1.8.4/url.min.js

justgage

http://apps.bdimg.com/libs/justGage/1.0.1/justgage.1.0.1.min.js

keymaster

http://apps.bdimg.com/libs/keymaster/1.6.1/keymaster.js

kizzy

http://apps.bdimg.com/libs/kizzy/0.0.5/kizzy.min.js

knockout.js

http://apps.bdimg.com/libs/knockout.js/3.1.0/knockout.js

layer

http://apps.bdimg.com/libs/layer/2.1/layer.js

layer.m

http://apps.bdimg.com/libs/layer.m/1.5/layer.m.js

laytpl.js

http://apps.bdimg.com/libs/laytpl.js/1.1/laytpl.js

lightbox

http://apps.bdimg.com/libs/lightbox/2.6/lightbox.min.js

lithe

http://apps.bdimg.com/libs/lithe/0.1.8/lithe.js

lodash

http://apps.bdimg.com/libs/lodash/3.5.0/lodash.js

mindb

http://apps.bdimg.com/libs/MinDB/0.0.3/min.js

mobile-angular-ui

http://apps.bdimg.com/libs/mobile-angular-ui/1.2.0/js/mobile-angular-ui.js

moment

http://apps.bdimg.com/libs/moment/2.8.3/moment.js

moment-timezone

http://apps.bdimg.com/libs/moment-timezone/0.4.1/moment-timezone.min.js

mootools

http://apps.bdimg.com/libs/mootools/1.4.5/mootools-core-full-compat-yc.js

mui

http://apps.bdimg.com/libs/mui/2.8.0/js/mui.min.js

muplayer

http://apps.bdimg.com/libs/muplayer/0.9.2/player.min.js

nprogress

http://apps.bdimg.com/libs/nprogress/0.2.0/nprogress.js

odometer.js

http://apps.bdimg.com/libs/odometer.js/0.4.6/odometer.js

oj

http://apps.bdimg.com/libs/oj/0.2.1/oj.min.js

opentip

http://apps.bdimg.com/libs/opentip/2.0/opentip-jquery.min.js

owl-carousel

http://apps.bdimg.com/libs/owl-carousel/1.3.2/owl.carousel.min.js

oz.js

http://apps.bdimg.com/libs/oz.js/2.5.1/oz.min.js

pace

http://apps.bdimg.com/libs/pace/0.4.17/pace.js

paper.js

http://apps.bdimg.com/libs/paper.js/0.9.18/paper-full.min.js

parallax

http://apps.bdimg.com/libs/parallax/1.1.1/parallax.min.js

piecon

http://apps.bdimg.com/libs/piecon/0.2/piecon.min.js

platform

http://apps.bdimg.com/libs/platform/1.0.0/platform.min.js

pnotify

http://apps.bdimg.com/libs/pnotify/2.0.0/pnotify.core.min.js

polymer

http://apps.bdimg.com/libs/polymer/0.2.4/polymer.js

prettify

http://apps.bdimg.com/libs/prettify/r298/prettify.js

primish

http://apps.bdimg.com/libs/primish/0.3.6/primish-min.js

prism

http://apps.bdimg.com/libs/prism/0.0.1/prism.min.js

prototype

http://apps.bdimg.com/libs/prototype/1.7.1.0/prototype.js

puerh

http://apps.bdimg.com/libs/Puerh/2.0/puerh.css

pure

http://apps.bdimg.com/libs/pure/0.5.0/pure-min.css

q.js

http://apps.bdimg.com/libs/q.js/1.0.1/q.js

qatrix

http://apps.bdimg.com/libs/qatrix/1.1.1/qatrix.js

qtip2

http://apps.bdimg.com/libs/qtip2/2.2.0/jquery.qtip.min.js

queue-async

http://apps.bdimg.com/libs/queue-async/1.0.7/queue.min.js

qunit

http://apps.bdimg.com/libs/qunit/1.14.0/qunit.min.js

quo.js

http://apps.bdimg.com/libs/quo.js/2.3.6/quo.js

ractive.js

http://apps.bdimg.com/libs/ractive.js/0.3.7/ractive.min.js

rainbow

http://apps.bdimg.com/libs/rainbow/1.2.0/js/rainbow.min.js

raphael

http://apps.bdimg.com/libs/raphael/2.1.2/raphael-min.js

react

http://apps.bdimg.com/libs/react/0.10.0/react.min.js

recorder.js

http://apps.bdimg.com/libs/recorder.js/1.0/recorder.js

require-css

http://apps.bdimg.com/libs/require-css/0.1.8/css.min.js

require.js

http://apps.bdimg.com/libs/require.js/2.1.11/require.min.js

reqwest

http://apps.bdimg.com/libs/reqwest/1.1.0/reqwest.js

respond.js

http://apps.bdimg.com/libs/respond.js/1.4.2/respond.js

restangular

http://apps.bdimg.com/libs/restangular/1.4.0/restangular.min.js

reveal.js

http://apps.bdimg.com/libs/reveal.js/2.6.2/js/reveal.min.js

sammy.js

http://apps.bdimg.com/libs/sammy.js/0.7.4/sammy.min.js

sass.js

http://apps.bdimg.com/libs/sass.js/0.3.0/sass.min.js

scriptaculous

http://apps.bdimg.com/libs/scriptaculous/1.9.0/scriptaculous.js

seajs

http://apps.bdimg.com/libs/seajs/2.3.0/sea.js

select2

http://apps.bdimg.com/libs/select2/3.4.8/select2.min.js

selectize.js

http://apps.bdimg.com/libs/selectize.js/0.9.0/js/selectize.min.js

sequence.js

http://apps.bdimg.com/libs/sequence.js/1.0.1.1/jquery.sequence.js

shine.js

http://apps.bdimg.com/libs/shine.js/0.2.7/shine.min.js

should.js

http://apps.bdimg.com/libs/should.js/3.1.4/should.js

sigma.js

http://apps.bdimg.com/libs/sigma.js/0.1/sigma.min.js

simplemodal

http://apps.bdimg.com/libs/simplemodal/1.4.4/jquery.simplemodal.min.js

simplestatemanager

http://apps.bdimg.com/libs/simplestatemanager/1.3.0/ssm.min.js

sizzle

http://apps.bdimg.com/libs/sizzle/1.10.19/sizzle.min.js

skrollr

http://apps.bdimg.com/libs/skrollr/0.6.24/skrollr.min.js

slidesjs

http://apps.bdimg.com/libs/slidesjs/3.0/jquery.slides.min.js

snap.js

http://apps.bdimg.com/libs/snap.js/1.9.0/snap.min.js

socket.io

http://apps.bdimg.com/libs/socket.io/0.9.16/socket.io.min.js

sockjs-client

http://apps.bdimg.com/libs/sockjs-client/0.3.4/sockjs.min.js

string.js

http://apps.bdimg.com/libs/string.js/1.8.1/string.min.js

sugar

http://apps.bdimg.com/libs/sugar/1.4.1/sugar.min.js

superagent

http://apps.bdimg.com/libs/superagent/0.15.7/superagent.min.js

svg.js

http://apps.bdimg.com/libs/svg.js/1.0rc3/svg.min.js

swfobject

http://apps.bdimg.com/libs/swfobject/2.2/swfobject.js

swig

http://apps.bdimg.com/libs/swig/1.3.2/swig.min.js

swipe

http://apps.bdimg.com/libs/swipe/2.0/swipe.min.js

syntaxhighlighter

http://apps.bdimg.com/libs/SyntaxHighlighter/3.0.83/scripts/shCore.js

tagmanager

http://apps.bdimg.com/libs/tagmanager/3.0.0/tagmanager.js

term.js

http://apps.bdimg.com/libs/term.js/0.0.2/term.js

timelinejs

http://apps.bdimg.com/libs/timelinejs/2.32.0/js/storyjs-embed.js

tinycon

http://apps.bdimg.com/libs/tinycon/0.5/tinycon.min.js

todc-bootstrap

http://apps.bdimg.com/libs/todc-bootstrap/3.1.1-3.2.1/todc-bootstrap.min.css

trianglify

http://apps.bdimg.com/libs/trianglify/0.1.2/trianglify.min.js

twix.js

http://apps.bdimg.com/libs/twix.js/0.3.0/twix.min.js

typeahead.js

http://apps.bdimg.com/libs/typeahead.js/0.10.2/typeahead.bundle.min.js

typo.css

http://apps.bdimg.com/libs/typo.css/2.0/typo.css

ueditor

http://apps.bdimg.com/libs/ueditor/1.4.3.1/ueditor.all.js

uikit

http://apps.bdimg.com/libs/uikit/2.8.0/js/uikit.min.js

underscore.js

http://apps.bdimg.com/libs/underscore.js/1.7.0/underscore-min.js

unveil

http://apps.bdimg.com/libs/unveil/1.3.0/jquery.unveil.min.js

uri.js

http://apps.bdimg.com/libs/URI.js/1.11.2/URI.min.js

validator

http://apps.bdimg.com/libs/validator/1.0/validator.js

validform

http://apps.bdimg.com/libs/validform/5.3.2/validform.js

vega

http://apps.bdimg.com/libs/vega/1.4.0/vega.min.js

video.js

http://apps.bdimg.com/libs/video.js/4.1.0/video.js

visibility.js

http://apps.bdimg.com/libs/visibility.js/1.2.1/visibility.min.js

vue

http://apps.bdimg.com/libs/vue/1.0.14/vue.js

webfont

http://apps.bdimg.com/libs/webfont/1.3.0/webfont.js

when

http://apps.bdimg.com/libs/when/2.7.1/when.js

wow

http://apps.bdimg.com/libs/wow/0.1.6/wow.min.js

yui

http://apps.bdimg.com/libs/yui/3.17.0/yui/yui-min.js

zepto

http://apps.bdimg.com/libs/zepto/1.1.4/zepto.min.js

zeroclipboard

http://apps.bdimg.com/libs/zeroclipboard/2.2.0/ZeroClipboard.min.js

到此这篇关于前端静态资源福利:百度静态JS资源公共库(CDN)的文章就介绍到这了,更多相关百度静态JS资源公共库(CDN)内容请搜索我们以前的文章或继续浏览下面的相关文章希望大家以后多多支持我们!

(0)

相关推荐

  • Java FutureTask类使用案例解析

    FutureTask一个可取消的异步计算,FutureTask 实现了Future的基本方法,提空 start cancel 操作,可以查询计算是否已经完成,并且可以获取计算的结果.结果只可以在计算完成之后获取,get方法会阻塞当计算没有完成的时候,一旦计算已经完成,那么计算就不能再次启动或是取消. 一个FutureTask 可以用来包装一个 Callable 或是一个runnable对象.因为FurtureTask实现了Runnable方法,所以一个 FutureTask可以提交(submit

  • 国内常用的js类库大全(CDN公共库)

    国内站点经常使用的一些 CDN 静态资源公共库加速服务 web开发人员们的福利来了..旨在为大家提供更快很多其它更好的静态资源库的CDN载入库方案! CDN公共库是指将经常使用的JS库存放在CDN节点,以方便广大开发人员直接调用. 与将JS库存放在server单机上相比,CDN公共库更加稳定.快速.一 般的CDN公共库都会包括全球全部最流行的开源JavaScript.JQuery等库.你能够在自己的网页上直接通过script标记引用这些资源.这样做不仅能够为您 节省流量.还能通过CDN加速.获得

  • 前端静态资源福利:百度静态JS资源公共库(CDN)

    前端的很多静态资源,比如JS,CSS怎么办呢?这时,我们需要一个公共且高速的静态资源托管平台. 这里就推荐百度静态资源公共库,百度静态资源公共库是稳定,快速,全面,开源的国内CDN加速服务.遍布全国各地100+个CDN节点提供加速服务.让开源库享受与百度首页静态资源同等待遇. 如果你在使用jQuery.Bootstrap.backbone.dojo.zepto等各种流行库,一定不要错过百度静态资源公共库. accounting.js http://apps.bdimg.com/libs/acco

  • 禁止IIS缓存静态文件的方法(png,js,html等)

    禁止IIS缓存静态文件(png,js,html等)背景:IIS为了提高性能,默认情况下会对静态文件js,html,gif,png等做内部缓存,这个缓存是在服务器iis进程的内存中的.IIS这么做在很大程度上可以提高静态文件的访问性能,在正常情况下只要静态文件更新了IIS也会更新缓存.但是如果更新的静态文件很多就有可能出现缓存不更新的情况. 弯路:我遇到这样一个场景,服务器循环更新上万张股票行情图片,IIS也会对图片进行缓存,由于更新的频率很高,文件很多,就出现了IIS缓存文件超过几十分钟都无法更

  • python自动保存百度盘资源到百度盘中的实例代码

    本实例的实现逻辑是,应用selenium UI自动化登录百度盘,读取存储百度分享地址和提取码的txt文档,打开百度盘分享地址,填入提取码,然后保存到指定的目录中 全部代码如下: # -*-coding:utf8-*- # encoding:utf-8 import time from selenium import webdriver browser = webdriver.Chrome() def loginphont(): browser.get("https://pan.baidu.com

  • PHP中的静态变量及static静态变量使用详解

    静态变量只存在于函数作用域内,也就是说,静态变量只存活在栈中.一般的函数内变量在函数结束后会释放,比如局部变量,但是静态变量却不会.就是说,下次再调用这个函数的时候,该变量的值会保留下来. 只要在变量前加上关键字static,该变量就成为静态变量了. <?php function test() { static $nm = ; $nm = $nm * ; print $nm."<br />"; } // 第一次执行,$nm = test(); // 第一次执行,$nm

  • php 类中的常量、静态属性、非静态属性的区别

    一.类常量:在类中始终保持不变的值定义为常量 类的常量不能使用访问限制修饰符,他是 public 的,可继承,可以被子类重写,访问类的常量必须使用双冒号 :: ,可以使用类名或类的实例来访问,因为是常量,所以名称不能使用表示变量的符号 $. 可以把在类中始终保持不变的值定义为常量.在定义和使用常量的时候不需要使用 $ 符号. 常量的值必须是一个定值,不能是变量,类属性,数学运算的结果或函数调用. 接口(interface)中也可以定义常量.更多示例见文档中的接口部分. 自 PHP 5.3.0 起

  • C++中的局部变量、全局变量、局部静态变量、全局静态变量的区别

    局部变量(Local variables)与 全局变量: 在子程序或代码块中定义的变量称为局部变量,在程序的一开始定义的变量称为全局变量. 全局变量作用域是整个程序,局部变量作用域是定义该变量的子程序或代码块. 当全局变量与局部变量同名时:在定义局部变量的子程序内,局部变量起作用:在其它地方全局变量起作用. 全局变量在程序开始运行期间就已经在内存中开辟了内存空间,直到程序结束才会释放这块内存空间. 全局变量要在其他文件中使用,需显示的声明这个变量,使用extern关键字声明(extern int

  • Vue Element前端应用开发之常规的JS处理函数

    1.常规集合的filter.map.reduce处理方法 filter函数的主要用途是对数组元素进行过滤,并返回一个符合条件的元素的数组 const nums = [10,20,30,111,222,333] let newNums=nums.filter(function(n){ return n<100 }) 输出: [10,20,30] map函数是对数组每个元素的映射操作,并返回一个新数组,原数组不会改变将newNums中每个数字乘2 const nums = [10,20,30,111

  • 使用JS 的download库在浏览器直接下载文件

    目录 download.js 使用说明 用法示例 文本 HTML 二进制文件 一般情况下web项目的浏览器下载文件,都是使用form表单或者ajax向后端提交数据,发送请求,后端文件的URL地址或者二进制文件流.这篇文章主要介绍了使用JS 的download库在浏览器直接下载文件. HTML5 a 标签可以使用 download 属性来设置资源的下载,但需要是同源,如果浏览器可以解析也会直接打开. 这时我们可以通过第三方库 download 来实现更完整的下载功能. download.js do

  • JS基于myFocus库实现各种功能的tab选项卡切换效果

    本文实例讲述了JS基于myFocus库实现各种功能的tab选项卡切换效果.分享给大家供大家参考.具体如下: 这里介绍使用myFocus-tab实现各种功能的选项卡切换,有的是带有动画效果的,各款基于myFocus库制作的焦点图风格皮肤,可自行按需选择,myFocus焦点图库及皮肤可自由使用,保留作者相关信息即可,谢谢支持!^^ 运行效果截图如下: 在线演示地址如下: http://demo.jb51.net/js/2015/js-myfocus-plug-tab-cha-nav-codes/ 具

随机推荐