20春《輕量級(jí)框架開發(fā)應(yīng)用》離線作業(yè)_第1頁
20春《輕量級(jí)框架開發(fā)應(yīng)用》離線作業(yè)_第2頁
20春《輕量級(jí)框架開發(fā)應(yīng)用》離線作業(yè)_第3頁
20春《輕量級(jí)框架開發(fā)應(yīng)用》離線作業(yè)_第4頁
20春《輕量級(jí)框架開發(fā)應(yīng)用》離線作業(yè)_第5頁
已閱讀5頁,還剩49頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

要求:在本文檔中的題目下作答,在所寫的代碼下面粘貼運(yùn)行后的網(wǎng)頁截圖,提交本

word文檔即可。

假如你的女朋友想跟你分手,你想哄女朋友開心。作為前端工程師的你,給自己心愛的

女孩做了一個(gè)專屬網(wǎng)頁。為了渲染氣氛,需要你把每一段話做成一個(gè)每秒不斷隨機(jī)變換顏色

的動(dòng)態(tài)效果。能不能挽回女朋友的芳心就靠這個(gè)效果了,年輕人,加油吧!!!

(注意:要用jQuery呦?。。。?/p>

<!DOCTYPEhtml>

<html>

<head>

<metacharset=Hutf-8">

<titlex/title>

</head>

<body>

<div>

1.你走之后,沒人再嫌棄我瘦,也沒人再關(guān)心我的感受,你走之后,我的生活只剩下將就。

</div>

<div>

2.好不容易才讓你愿意住進(jìn)我的心里,為何我卻不懂事的總是惹你生氣,恨自己不懂得愛

護(hù)你,后悔分手的時(shí)候沒能拉住你。

</div>

<div>

3.再給我一次機(jī)會(huì),我不再會(huì)怕苦怕累,我明白自己并不完美,但以后的日子,我會(huì)愛你

愛的更加純粹。

</div>

</body>

任務(wù)描述:

你需要利用jquery技術(shù)獲取到代碼中的3個(gè)div標(biāo)簽,你需要給每個(gè)div標(biāo)簽的內(nèi)容

添加隨機(jī)顏色,每秒鐘切換一次隨機(jī)顏色。

<!DOCTYPEhtml>

<html>

<head>

<metacharset=〃utf-8〃>

</head>

<scriptsrc=〃./js/jquery1.12.4.min.js,,X/script>

<body>

<divclass=〃bg〃〉

1.你走之后,沒人再嫌棄我瘦,也沒人再關(guān)心我的感受,你走之后,我的生活只

剩下將就。

</div>

<divclass=〃bg〃>

2.好不容易才讓你愿意住進(jìn)我的心里,為何我卻不懂事的總是惹你生氣,恨自己

不懂得愛護(hù)你,后悔分手的時(shí)候沒能拉住你。

</div>

<divclass=〃bg〃>

3.再給我一次機(jī)會(huì),我不再會(huì)怕苦怕累,我明白自己并不完美,但以后的日子,

我會(huì)愛你愛的更加純粹。

</div>

<script>

setinterval(functionO{

$('.bg').each(function(){

$(this).cssCcolor,'#,+Math.floor(Math,random()*Oxffffff).toString(16));

})

),1000)

</script>

</body>

</html>

/*!jQueryvl.12.4|(c)JQueryFoundationjquery.org/license*/

[function(a,b){〃object〃=typeofmodule&&〃object"=typeof

module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)thr

ownewError(z'jQueryrequiresawindowwithadocument,z);return

b(a)]:b(a)}("undefined”!=typeofwindow?window:this,function(a,b){var

c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k

=i.hasOwnProperty,1={},m=〃l.12.4〃,n=function(a,b){returnnew

n.fn.init(a,b)},o=/*[\s\uFEFF\xA0]+1[\s\uFEFF\xA0]+$/g,p=/~ms-/,q=/-([\da-z])/

gi,r=function(a,b){return

b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:,z,,?length:0,

toArray:function(){returne.call(this)},get:function(a){return

nul1!=a?O>a?this[a+this.length]:this[a]:e.cal1(this)},pushStack:function(a){var

b=n.merge(this,constructor(),a);return

b.prevObject=this,b.context二this,context,b},each:function(a)(return

n.each(this,a)},map:function(a){return

this.pushStack(n.map(this,function(b,c){return

a.call(b,c,b)}))},slice:function(){return

this.pushStack(e.apply(this,arguments))},first:function(){return

this.eq(0)},last:function(){returnthis,eq(-l)},eq:function(a){var

b=this.length,c=+a+(0>a?b:0);return

this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return

this.prevObjectl|this,constructor()},push:g,sort:c.sort,splice:c.splice),n.exte

nd=n.fn.extend=function(){var

z,,z

a,b,c,d,e,f,g=arguments[O],I{},h=l,i二arguments,length,j=!1;for(boolean==typeo

fg&&(j=g,g=arguments[h]|I{},h++),"object〃=二typ60f

giIn.isFunction(g)||(g={)),h==::=i&&(g=this,h-);i>h;h++)if(null!=(e=arguments[h]

))for(din

e)a=g[d],c=e[d],g!==c&&((n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f

=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void

0!==c&&(g[d]=c));return

g},n.extend({expando:z,jQuery,z+(m+Math.random()).replace(/\D/g,//,z),isReady:!0,er

ror:function(a){thrownew

Error(a)},noop:function(){},isFunction:function(a){return,zfunction,z===n.type(a)

},isArray:Array.isArrayl|function(a){return,/array,,=~n.type(a)},isWindow:functi

on(a){returnnul1!=a&&a==a.window),isNumeric:function(a){var

b=a&&a.toStringO;return!n.isArray(a)&&b-parseF1oat(b)+1>=0},isEmptyObject:func

tion(a){varb;for(bina)return!1;return!0},isPlainObject:function(a){var

b;if(!a||"object"!==n?type(a)Ia.nodeType||n.isWindow(a))return!1;try{if(a.cons

tructor&&!k.call(a,"constructor")&&!k.call(a.constructor,prototype,,zisPrototype

Of/?))return!1}catch(c){return!1}if(!1.ownFirst)for(bina)return

k.call(a,b);for(bina);returnvoid0===b||k.call(a,b)},type:function(a){return

,/=

nul1==a?a+〃〃:“object〃=二typeofa|Kfunction=typeof

a?i[j.call(a)]||"object〃:typeof

a),globalEval:function(b){b&&n.trim(b)&&(a.execScriptl|function(b){a.eval,call(

a,b)))(b)),camelCase:function(a){return

a.replace(p,/zms-z,).replace(q,r)},nodeName:function(a,b){return

a.nodeName&&a.nodeName.toLowerCase()==b.toLowerCase()),each:function(a,b){var

c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else

for(dina)if(b.call(a[d],d,a[d])===!1)break;returna),trim:function(a){return

/,,z,,z/

null=二a?〃〃:(a+).replace(o,)},makeArray:function(a,b){varc=b||[];return

null!=a&&(s(Object(a))?n.merge(c,"string〃二二typeof

a?[a]:a):g.call(c,a)),c),inArray:function(a,b,c){vard;if(b){if(h)return

h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(cin

b&&b[c]===a)returnc}return-l),merge:function(a,b){var

c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void

0!~b[d])a[e++]=b[d++];returna.length=e,a},grep:function(a,b,c){for(var

d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!=h&&e.push(a[f]);return

e),map:function(a,b,c){var

d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);el

sefor(gina)e=b(a[g],g,c),null!=e&&h.push(e);return

f.apply([],h)},guid:1,proxy:function(a,b){varc,d,f;return^string,,=typeof

b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return

a.apply(b|Ithis,c.concat(e.cal1(arguments)))},d.guid=a.guid=a.guid||n.guid++,d)

:void0),now:function()(return+newDate},support:].}),“function〃二二typeof

Symbol&&(n.fn[Symbol.iterator]=c[Symbol,iterator]),n.each(''BooleanNumberString

FunctionArrayDateRegExpObjectErrorSymbol”,split(〃

z/

〃),function(a,b){i[[object〃+b+〃]〃]=b.toLowerCase()});functions(a){var

b=!!a&&,zlengthz,in

a&&a.length,c=n.type(a);return〃function〃==c||n.isWindow(a)?!1:,,array/,===c||0==

=b1"number"二二typeofb&&b>0&&b~lina)vart=function(a){var

b,c,d,e,f,g,h,i,j,k,1,m,n,o,p,q,r,s,t,u="zsizzlez/+l*new

Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return

a===b&&(l=!0),0},C=l<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E

.slice,J=function(a,b){for(varc=0,d=a.length;d>c;c++)if(a[c]===b)return

c;return-1),K=〃checked|selected,async|autofocus|autoplay|controls|defer|disable

dhidden|ismap1oop|multiple|open|readonly|required|scoped”,L=/,[\\x20\\t\\r\\n\

\f]〃,M=〃(?:\\\\.I[\\w-]|[\\x00-\\xa0])+〃,N=〃\\[〃+L+〃*(〃+M+〃)(?:〃+L+〃*([哀$]!(

?=)〃+L+〃*(?:'|「\\\\\〃])*)\〃|(〃+M+〃))|)〃+L+〃*

\\]〃,0=〃:(〃+M+〃)(?:\\(((‘((?:\\\\.|、\\\\'])*)'|\〃((?:\\\\.|[AWW])*)V)1((?

:\\\\.I廠\\\\0[\\]]I〃+N+〃)*)|.*)\\)|)〃,P=newRegExp(L+〃+〃,〃g〃),Q=new

RegExp(〃~'+L+〃+1((?「|[\\\\])(?:\\\\.)*)〃+L+〃+$〃,〃g〃),knew

RegExp(〃”'+L+〃汽〃+L+〃*〃),S=newRegExp("〃+L+〃*([>+][〃+L+〃:)〃+L+〃*〃),knew

RegExp(J"+L+”*(「\\]\"]*?)”+L+"*\\]","g"),U二newRegExp(0),V=new

RegExp("八"+M+〃$〃),W={ID:newRegExp(〃#("+M+”)〃),CLASS:new

RegExp("、\.(〃+M+”)〃),TAG:newRegExp…(〃+M+〃|[*])〃),ATTR:new

RegExp("〃+N),PSEUDO:newRegExp(""+0),CHILD:new

RegExp(":(only|first|lastInth|nth-last)-(chiId|of-type)(?:\\(〃+L+"*(even|odd|(

([+TI)(\\d*)n|)〃+L+〃*(?:([+-]|)〃+L+〃*(\\d+)I))〃+L+〃*\\)|)〃,〃i〃),bool:new

RegExpC"(?:"+K+")$","i"),needsContext:new

RegExp(〃"'+L+〃*[>+~]|:(even|oddIeq|gt|It|nthIfirst|last)(?:\\("+L+〃*((?:-\\d)?\

\d*)〃+L+〃*\\)I)(?=[-]|$)”,〃i〃)},X=/c(?:input|select|textarea|button)$/i,Y=/^h\

d$/i,Z=/T{]+\{\s*\[native

\w/?$=/*(?:#([\w-]+)|(\w+)Iaa=/'|\\/g,ba=new

RegExp("\\\\([\\da-f]{l,6}〃+L+〃?|(〃+L+〃)|.)〃,"ig〃),ca=function(a,b,c){var

d=〃0x〃+b-65536;return

d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d?10!55296,102

3&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes)

,E[v.childNodes.length].nodeType}catch(ea){11={apply:E.length?function(a,b){G.ap

ply(a,I.call(b))}:function(a,b){var

c=a.length,d=0;while(a[c++]=b[d++]);a.length=cT}}}functionfa(a,b,d,e){var

f,h,j,k,1,o,r,s,w=b&&b.ownerDocument,x二b?b.nodeType:9;if(d=d|[],"string”!二type

ofa||!a||1!==x&&9!==x&&11!==x)return

d;if(!e&&((b?b.ownerDocumentIb:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)

))if(f=o[l]){if(9===x){if(!(j=b.getElementByld(f)))returnd;if(j.id===f)return

d.push(j),d}elseif(w&&(j=w.getElementByld(f))&&t(b,id===f)return

d.push(j),d}else{if(o[2])return

H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getE1ementsByC1assName&&b

.getElementsByClassName)return

H.apply(d,b.getElementsByClassName(f)),d)if(c.qsa&&!A[a+"

||!q.test(a))){if(1!==x)w=b,s=a;else

if("object"!二二b.nodeName.toLowerCase()){(k=b.getAttribute(^id^))?k=k.replace(aa

,“\\$&"):b.setAttributek=u),r=g(a),h=r.length,1=V.test(k)?〃#"+k:"[id='"+k

+“']〃;while(h—)r[h]=l+"

〃+qa(r[h]);s=r.join(〃,〃),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return

H.apply(d,w.querySelectorAl1(s)),d}catch(y){}finally{k===u&&b.removeAttribute(〃

/z

id)))}returni(a.replace(Q,,b,d,e)}functionga(){vara二口;function

b(c,e){returna.push(c+/z,z)>d.cacheLength&ftdeleteb[a.shift()],b[c+",z]=e)return

b}functionha(a){returna[u]=!0,a}functionia(a){var

b=n.createElement(z/div,z);try(return!!a(b)}catch(c){return!1}finally(b.parentNod

e&&b.parentNode.removeChild(b),b=null)}functionja(a,b){var

,z

c=a.split(|,e=c.length;while(e一一)d.attrHandle[c[e]J=b}functionka(a,b){var

c=b&&a,d=c&&l===a.nodeType&&1===b.nodeType&&("b.sourceindex||C)-(~a.sourceindex

IC);if(d)returnd;if(c)while(c=c.nextSibling)if(c===b)return-1;return

a?l:-l)functionla(a){returnfunction(b)(var

c=b.nodeName.toLowerCase();return,/inputz/===c&&b.type===a}}functionma(a){return

function(b){var

c=b.nodeName.toLowerCase();return。input〃==c|:"button"=二二c)&&b.type===a}}funct

ionna(a){returnha(function(b)(returnb=+b,ha(function(c,d){var

e,f=a([],c.length,b),g=f.length;while(g-)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}fu

notionoa(a){returna&&z,undefined,z!=typeof

a.getElementsByTagName&&a}c=fa.support={),f=fa.isXML=function(a){var

b=a&&(a.ownerDocument||a).documentElement;return

b?〃HTML〃!==b.nodeName:!1},m=fa.setDocument=function(a){var

b,e,g=a?a.ownerDocument||a:v;return

g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.

defaultView)&&e.top!=e&&(e.addEventListener?e.addEventListener(,zunloadz,,da,!1)

:e.attachEvent&&e.attachEvent(zzonunload,z,da)),c.attributes=ia(function(a){retur

n

a.className=!a?getAttribute(/,className/,)}),c.getElementsByTagName=ia(functi

on(a){return

a.appendChiId(n.createComment(z,,,)),!a.getElementsByTagName.length}),c.getE

lementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){re

turn

o.appendChiId(a).id=u,!n.getElementsByNameI!n.getElementsByName(u).length}),c.

getByld?(d.find.ID=function(a,b){if("undefined”!=typeof

b.getElementById&&p){varc=b.getElementByld(a);return

c?[c]:[]}},d.filter.ID=function(a){varb=a.replace(ba,ca);return

function(a){returna.getAttribute(〃id〃)==b}}):(delete

d.find.ID,d.filter.ID=function(a){varb=a.replace(ba,ca);returnfunction(a){var

z,,z

c二〃undefined〃!=typeofa.getAttributeNode&&a.getAttributeNode(id);return

c&&c.value===b}}),d.find.TAG=c.getE1ementsByTagName?function(a,b){returnz,undefi

ned〃!=typeof

b.getElementsB}rTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAl1(a):vo

id0):function(a,b){var

c,d二口,e=0,f=b.getElementsByTagName(a);if(〃*〃=a){while(c=f[e++])l===c.nodeTyp

e&&d.push(c);returnd}return

f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return,zundefinedz,!=type

ofb.getElementsByClassName&&p?b.getElementsByClassName(a):void

0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(

a).innerIlTML=z,<aid='〃+u+〃'></a><selectid='"+u+"-\r\\'

msallowcapture=,'Xoption

selected=''></option></select>/,,a.querySelectorAllC[msallowcapture^=,']〃).leng

th&&q.push(〃[*飛]="+L+〃*(?:''I\〃\〃)〃),a.querySelectorAll(,z[selected],z).length||

q.push(〃\\["+L+”*(?:value|"+K+")〃),a.querySelectorAll("[id"=〃+u+〃T〃).length|q

.push("~=〃),a.querySelectorAll(〃:checked").length||q.push(〃:checked"),a.querySe

lectorAll(〃a#〃+u+〃+*〃).length:q.push(〃.#.+[+、]〃)}),ia(function(a){var

b=n.createElement(z/input,z);b.setAttribute(^type^,“hidden"),a.appendChiId(b).set

Attribute(〃name〃,〃D〃),a.querySelectorAl1(〃[name=d]〃).length&&q.push(〃name"+L+〃*

[*$|!、]?=〃),a.querySelectorAll(〃:enabled").length||q.push(〃:enabled",〃:disable

d〃),a.querySelectorAll(〃*,:x〃),q.push(〃,.*:〃)})),(c.matchesSelector=Z.test(s=o.

matches||o.webkitMatchesSelector'|o.mozMatchesSelector||o.oMatchesSelectoro.m

sMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,〃div"),s.call(a

,"[s!='']:xz,),r.push("!=",0)}),q=q.length&&new

RegExp(q.join(〃〃)),r=r.length&&new

RegExp(r.join(〃|〃)),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)

?function(a,b)(var

c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return

a===d||!(d1!=d.nodeType|I!(c.contains?c.contains(d):a.compareDocumentPositi

on&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)

if(b="a)return!0;return!1},B=b?function(a,b){if(a===b)returnl=!0,0;var

d=!a.compareDocumentPosition-!b.compareDocumentPosition;return

d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b)

:1,l&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocumen

t==v&&t(v,a)?-l:b~=n||b.ownerDocum6nt==v&&t(v,b)?l:k?J(k,a)-J(k,b):0:4&d?-l:

1)}:function(a,b){if(a===b)returnl=!0,0;var

c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return

a===n?-l:b===n?l:e?-l:f?l:k?J(k,a)-J(k,b):0;if(e===f)return

ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshif

t(c);while(g[d]===h[d])d++;return

d?ka(g[d],h[d]):g[d]二二二v?-1:h[d]==v?l:0},n):n},fa.matches=function(a,b){return

fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument|Ia)!==n

&&m(a),b=b.replaced,,/=,$T]z,),c.matchesSelector&&p&&!A[b+z,

〃]&&(!r||!r.test(b))&,&(!qiI!q.test(b)))try{var

d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&l1!==a.document.nodeType)r

eturnd}catch(e){}return

fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)

!==n&&,m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument!|a)!==n&&m(a);var

e=d.attrllandle[b.toLowerCase()],f=e&&D.call(d.attrllandle,b.toLowerCase())?e(a,b

,!p):void0;returnvoid

0!==f?f:c.attributes!|!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specifi

ed?f.value:null},fa.error=function(a){thrownewError(,zSyntaxerror,unrecognized

expression:〃+a)},fa.uniqueSort=function(a){var

b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),1

){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],l)}return

k=null,a},e=fa.getText=function(a){var

b,c=〃〃,d=0,f=a.nodeType;if(f){if(l="f||9===f!ll===f){if("string〃二二typeof

a.textContent)return

a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else

if(3===f|14===f)returna.nodeValue}elsewhile(b=a[d++])c+=e(b);return

c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrllandle:{},find:{}

,z

,relative:{〃>〃:{dir:"parentNode”,first:!0),

z,

〃:{dir:〃parentNode〃},〃+〃:{dir:〃previousSibling〃,first:!0},〃~〃:{dir:previousSib

ling"}},preFilter:{ATTR:function(a){return

a[l]=a[l].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||replace(ba,ca),[2]

&&(a[3]=/,,,+a[3]+/z,?),a.slice(0,4)},CHILD:function(a){return

a[1]=a[1].toLowerCase(),,,nth,,===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[

4]?a[5]+(a[6]|11):2*("even"===a[3]||,,odd,,===a[3])),a[5]=+(a[7]+a[8]||,,odd,,===a[

3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){varb,c=!a[6]&&a[2];return

W.CHILD,test(a[0])?nu11:(a[3]?a[2]=a[4]||a[5]||"〃:c&&U.test(c)&&(b=g(c,!0))&&(b

=c.indexOf(,z)c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),

a.slice(0,3))}},filter:{TAG:function(a){var

b=a.replace(ba,ca).toLowerCase();return,/*/,===a?function(){return!0):function(a)

{returna.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){varb二y[a+〃

;returnb||(b=newRegExp("(T+L+”)"+a+"("+L+"|$)"))&&y(a,function(a){return

b.test("string"二二typeofa.className&&a.classNameI|"undefined”!二typeof

a.getAttribute&&a.getAttribute("class")II〃〃)})},ATTR:function(a,b,c){return

function(d){vare=fa.attr(d,a);return

,,,,

null二二e?〃!二〃二二二b:b?(e+二〃〃,〃二〃二二二b?e二二二c:〃!二〃二二二b?e!二二c:"====b?c&&0===e.indexO

////,/"zz/

f(c):〃*二〃二二二b?c&&e?indexOf(c)>-1:$====b?c&&e.slice(~c.length)===c:"====b?(

〃+e.replace(P,〃〃)+〃

〃).indexOf(c)>-l:/z|=,z===b?e===c||e.slice(0,c.length+l)===c+〃-〃:!1):!0}},CHILD:f

unction(a,b,c,d,e){var

/,z,

f=“nth〃!二二a.slice(0,3),g=“l(fā)ast〃!=a.siice(-4),h=of-type===b;return

l===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var

j,k,1,m,n,o,p=f!==g?〃nextSibling〃:〃previousSibling〃,q=b.parentNode,r=h&&b.nodeN

ame.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p)(m=b;while(m=m[p])if(h?m.no

deName.toLowerCase()===r:l===m.nodeType)return!1;o=p="only"=二二a&&!o&&"nextSibli

ng,z}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[

m.uniquelD]||(1[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.ch

:

ildNodes[n];while(m=++n&&m&&m[p]|(t=n=0)i|o.pop())if(l===m.nodeType&&++t&&m二二二

b){k[a]=[w,n,t];break}}else

if(s&&(m=b,l=m[u]|(m[□]={}),k=l[m.uniquelD]||(1[m.uniqueID]={}),j=k[a]||[],n=j

[0]===w&&j[l],t=n),t===!1)while(m=++n&&m&&m[p]I|(t=n=0)o.pop())if((h?m.nodeNa

me.toLowerCase()===r:l~=m.nodeType)&&++t&&(s&&(l=m[u]|I(m[u]={)),k=l[m.uniquel

D]I|(1[m.uniqueID]={}),k[a]=[w,t]),m=-b))break;return

t-=e,t===d,|t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var

c,e=d.pseudos[a]!|d.setFilters[a.toLowerCase()]||fa.error(^unsupportedpseudo:

〃+a);return

e[u]?e(b):e.length>l?(c=[a,a,〃〃,b],d.setFilters.hasOwnProperty(a.toLowerCase())

?ha(function(a,c){var

d,f=e(a,b),g=f.1ength;whi1e(g—)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){ret

urne(a,0,c)}):e}},pseudos:{not:ha(function(a){var

b=[],c=[],d=h(a.replace。〃$1〃));returnd[u]?ha(function(a,b,c,e){var

f,g=d(a,null,e,[]),h=a.length;while(h-)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a

,e,f){return

b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return

function(b){returnfa(a,b).length>0})),contains:ha(function(a){return

a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf

(a)>~1))),lang:ha(function(a){returnV.test(a||〃〃)||fa.error(^unsupportedlang:

^+3),a=a.replace(ba,ca).toLowerCase(),function(b){varc;do

if(c=p?b.lang:b.getAttribute(,zxml:langz,)||b.getAttribute(zzlangz,))return

c=c.toLowerCase(),c二二二a||0==c.indexOf(a+"-〃);while((b=b.parentNode)&&l===b.nod

eType);return!l}}),target:function(b){varc=a.location&&a.location,hash;return

c&&c.slice(l)===b.id},root:function(a){returna===o},focus:function(a){return

a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.typella.href||"a.tablnde

x)},enabled:function(a){returna.disabled===!1),disabled:function(a){return

a.disabled===!0},checked:function(a){var

b=a.nodeName.toLowerCase();return,,input//===b&&!!a.checkedII〃option〃==b&&!!a.se

lected),selected:function(a){return

a.parentNode&&a.parentNode.selectedlndex,a.selected二二二!0},empty:function(a){for

(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:fun

ction(a){return!d.pseudos.empty(a)},header:function(a){return

Y.test(a.nodeName)},input:function(a){return

X.test(a.nodeName)),button:function(a){var

,/?z/,,/

b=a.nodeName.toLowerCase();returninput===b&&button===a.typel|〃button〃=二b},

text:function(a){var

/,zz

b;return"input〃二二二a.nodeName.toLowerCase()&&text===a.type&&(nul1==(b=a.getAtt

ribute(〃type〃))||"text"二二二b.toLowerCase())},first:na(function(){return[0]}),las

t:na(function(a,b){return[b-l]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even

:na(function(a,b){for(varc=0;b>c;c+=2)a.push(c);return

a}),odd:na(function(a,b){for(varc=l;b>c;c+=2)a.push(c);return

a}),lt:na(function(a,b,c){for(vard=0>c?c+b:c;--d>=0;)a.push(d);return

a}),gt:na(function(a,b,c){for(vard=0>c?c+b:c;++d<b;)a.push(d);return

a})}},d?pseudos.nth=d.pseudos.eq;for(b

in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b

in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function

pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new

pa,g=fa.tokenize=function(a,b){varc,e,f,g,h,i,j,k=z[a+〃〃];if(k)return

b?0:k.slice(O);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slic

e(e[0].length)h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shiftO,f.push({value

:c,type:e[0].replace(Q,z,,z)}),h=h.siice(c.length));for(gin

d.filter)!(e=W[g].exec(h))||(e=j[g](e))||(c=e.shift(),f.push({value:c,ty

pe:g,matches:?}),h=h.slice(c.length));if(!c)break)return

b?h.length:h?fa.error(a):z(a,i).slice(O)};functionqa(a){for(var

b=0,c=a.length,d=/,/z;c>b;b++)d+=a[b].value;return"functionra(a,b,c){var

d=b.dir,e=c&&〃parentNod6'==d,f=x++;return

b.first?function(b,c,f){while(b=b[dj)if(l===b.nodeTypel|e)return

a(b,c,f)}:function(b,c,g){var

h,i,j,k=[w,f];if(g){while(b=b[d])if((l===b.nodeType||e)&&a(b,c,g))return!0}else

while(b=b[d])if(l==b.nodeTypelIe){if(j=b[u]||(b[u]={}),i=j[b.uniquelD]|I(j[b.u

niquelD]={}),(h=i[d])&&h[0]===w&&h[l]===f)return

k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}functionsa(a){return

a.length>l?function(b,c,d){var

e=a.length;while(e-)if(!a[e](b,c,d))return!1;return!0):a[0]}function

ta(a,b,c){for(vard=0,e=b.length;e>d;d++)fa(a,b[d],c);returnc}function

ua(a,b,c,d,e){for(var

f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&,&(c&&!c(f,d,e)||(g.push(f),j&&,

b.push(h)));returng}functionva(a,b,c,d,e,f)(return

d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var

j,k,1,m=[],n=[],o=g.length,p二f||ta(b||〃*〃,h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua

(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),

k=j.length;while(k—)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a)(if(e){j=[]

,k=r.length;while(k一)(l=rpush(q[k]=l);e(null,r=[],j,i)}k=r.length;whil

e(k—)(l=r[k])&&(j=e?J(f,1):m[k])>-l&&(f[j]=!(g[j]=l))}}else

r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function

wa(a){for(varb,c,e,f=a.length,g=d.relative[a[O].type],h=gId.relative]”

〃],i=g?l:0,k=ra(function(a){returna==b},h,!0),l=ra(function(a){return

J(b,a)>-1},h,!0),m=[function(a,c,d){var

e=!g&&(d||c!==j)II((b=c).nodeType?k(a,c,d):1(a,c,d));return

b二null,e}];f>i;i++)if(c=d.relative[a[i].type])[ra(sa(m),c)];else{if(c=d.filte

rtype],apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e

].type])break;returnva(i>l&&sa(m),i>l&&qa(a.slice(0,i-l).concat({value:

z,===a[i-2].type?"*":〃〃})).replace(Q,〃

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論