tag:blogger.com,1999:blog-50338398025076517752024-02-21T04:26:54.407+08:00翻译记事本记录下有关翻译的点点滴滴TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.comBlogger26125tag:blogger.com,1999:blog-5033839802507651775.post-82935529921065074742012-06-28T13:56:00.003+08:002012-06-28T13:56:23.248+08:00[每日一译]cut sb some slack<span class="hw" style="font-family: Arial; font-size: 16px; font-weight: bold; text-align: left;">cut <span class="idir">somebody</span> some slack</span><span style="font-family: Arial; font-size: 13px; text-align: left;"> (</span><i style="font-family: Arial; font-size: 13px; text-align: left;">American & Australian informal</i><span style="font-family: Arial; font-size: 13px; text-align: left;">)</span><br />
<div class="ds-single" style="font-family: Arial; font-size: 13px; margin-left: 1cm; text-align: left;">
to allow someone to do something that is not usually allowed, or to treat someone less severely than is usual <span class="illustration" style="color: #226699; font-style: italic;">Officials have asked the Environmental Protection Agency to cut Utah some slack in enforcing the Clean Air Act.</span></div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-62850593690346504902012-06-27T05:37:00.002+08:002012-06-27T05:58:23.985+08:00[每日一译]up the ante<br />
Up the ante:<br />
<br />
If you up the ante, you increase the importance or value of something, especially where there's an element of risk as the term comes from gambling, where it means to increase the stake (the amount of money bet).<br />
<br />
A lesser man :不太正直的人TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-37642301424534941542012-06-24T19:27:00.000+08:002012-06-24T19:27:36.083+08:00[每日一译]in the light of<span class="hw" style="font-family: Arial; font-size: 16px; font-weight: bold; text-align: left;">in (the) light of <span class="idir">something</span></span><br />
<div class="ds-single" style="font-family: Arial; font-size: 13px; margin-left: 1cm; text-align: left;">
for the reason given <span class="illustration" style="color: #226699; font-style: italic;">In light of how much our own costs have gone up, we have to raise prices to our customers.</span></div>
<span style="font-family: Arial; font-size: 13px; text-align: left;">Related vocabulary: </span><a href="http://idioms.thefreedictionary.com/in+view+of" style="color: #645e7d; font-family: Arial; font-size: 13px; text-align: left;">in view of <span class="idir">something</span></a>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-36705252721004222432012-06-24T18:26:00.001+08:002012-06-24T18:26:17.909+08:00[每日一译]by one's own admission<br />
<span style="font-family: Arial, Helvetica, sans-serif;">by one's own admission</span><br />
1. 就如其自己所承认的<br />
<br />
<i>On his own admission, he wasted his time at Oxford. </i><br />
如他自己所承认的,他在牛津虚度了时光。TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-80260415170883457122012-06-05T21:00:00.001+08:002012-06-05T21:00:13.446+08:00[每日一译]capture one's imagination / blink at sth.<b>capture someone's imagination</b><br />
Fig. to intrigue someone; to interest someone in a lasting way; to stimulate someone's imagination. <br />
<i>The story of the young wizard has captured the imagination of the world's children. </i><br />
<br />
<b>blink at something</b> <br />1. Lit. to open and close the eyelids quickly, one or more times. <div>
<i>I blinked at the bright light and finally had to close my eyes. Don't blink at me while I am trying to take your picture.</i><br />2. Fig. to overlook something, such as a mistake. (As if one had blinked one's eyes rather than seeing the error.)</div>
<div>
<i>I just can't blink at that kind of behavior. We can't blink at what evil you did.</i></div>
<div>
<i><br /></i></div>
<div>
【翻译PK】</div>
<div>
@译言训练营</div>
I figure life's a gift, and don't intend on wasting it. You never know what hand you're gonna get dealt next. You learn to take life as it comes at you, to make each day count.”(Jack, Titanic, 1997)<br /><br />生命就像礼物,不要浪费。你永远都不会知道下一刻你要经历什么。你要学会随遇而安,活出每一天的美好。TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-56184335175909771202012-05-06T23:48:00.001+08:002012-05-06T23:48:25.672+08:00[每日一译]in line with / on the face of it<span class="hw" style="background-color: white; font-family: Arial; font-size: 16px; font-weight: bold; text-align: left;">in line with <span class="idir">something</span></span><br />
<div class="ds-single" style="background-color: white; font-family: Arial; font-size: 13px; margin-left: 1cm; text-align: left;">
similar to something <span class="illustration" style="color: #226699; font-style: italic;">The company’s profits were in line with what was expected.</span></div>
<div class="ds-single" style="background-color: white; font-family: Arial; font-size: 13px; margin-left: 1cm; text-align: left;">
<span class="illustration" style="color: #226699; font-style: italic;"><br /></span></div>
<br /><b>on the face of it</b><br /><br />乍看上去,从表面上看 <br /> from appearances alone <br /><br /><div>
<br /></div>
<div>
【翻译PK】@译言训练营</div>
As you grow older, you will discover that you have two hands, one for helping yourself, the other for helping others. (by Audrey Hepburn, born Audrey Kathleen Ruston; 4 May 1929 – 20 January 1993) <br /><br />随着年龄的成长,你会发现你的双手一只是为了帮助自己,一只是为了帮助他人。TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-3442076037696600942012-05-06T23:43:00.000+08:002012-05-06T23:43:27.305+08:00[每日一译]write off<br />
<dt class="tit" style="font-size: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"><strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">write off</strong> <span class="f_pron tc_sub" style="color: #a0a0a0; font-family: 'lucida sans unicode', sans-serif; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-break: break-all !important;">[raɪt ɔf]</span></dt>
<dd style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-break: normal; word-wrap: break-word;"><ol style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<li class="txt_zh" style="font-size: 1em; line-height: 18px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; word-break: normal; word-wrap: break-word;"><strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">1.</strong> <span class="tc_sub" style="color: #a0a0a0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">及物动词 [+debt] [ money] </span><span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><a href="http://www.nciku.cn/search/zh/%E6%B3%A8%E9%94%80" style="color: #333333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">注销</a></span>
<dl class="exam" style="border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; line-height: 22px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"></dl>
</li>
<li class="txt_zh" style="font-size: 1em; line-height: 18px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; word-break: normal; word-wrap: break-word;"><strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">2.</strong> <span class="tc_sub" style="color: #a0a0a0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">及物动词 [+person] </span><span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">把…<a href="http://www.nciku.cn/search/zh/%E7%9C%8B%E4%BD%9C" style="color: #333333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">看作</a><a href="http://www.nciku.cn/search/zh/%E4%B8%8D%E5%AD%98%E5%9C%A8" style="color: #333333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">不存在</a></span>
<dl class="exam" style="border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; line-height: 22px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"></dl>
</li>
<li class="txt_zh" style="font-size: 1em; line-height: 18px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; word-break: normal; word-wrap: break-word;"><strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">3.</strong> <span class="tc_sub" style="color: #a0a0a0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">及物动词 [+plan] [ project] </span><span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><a href="http://www.nciku.cn/search/zh/%E5%8F%96%E6%B6%88" style="color: #333333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">取消</a></span>
<dl class="exam" style="border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; line-height: 22px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"></dl>
</li>
<li class="txt_zh" style="font-size: 1em; line-height: 18px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; word-break: normal; word-wrap: break-word;"><strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">4.</strong> <span class="tc_sub" style="color: #a0a0a0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">及物动词 [BRIT] [+vehicle] </span><span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">(wreck) <a href="http://www.nciku.cn/search/zh/%E6%8A%A5%E5%BA%9F" style="color: #333333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">报废</a></span>
<dl class="exam" style="border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; line-height: 22px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"></dl>
</li>
<li class="txt_zh" style="font-size: 1em; line-height: 18px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; word-break: normal; word-wrap: break-word;"><strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">5.</strong> <span class="tc_sub" style="color: #a0a0a0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">不及物动词 [+information] </span><span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">to write off for sth 写信<a href="http://www.nciku.cn/search/zh/%E7%B4%A2%E8%A6%81" style="color: #333333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">索要</a>某物</span>
<dl class="exam" style="border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; line-height: 22px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"></dl>
</li>
<li class="txt_zh" style="font-size: 1em; line-height: 18px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; word-break: normal; word-wrap: break-word;"><strong style="background-color: white; color: #333333; font-family: Arial, SimSun, 'Lucida Sans', 'lucida sans unicode', sans-serif; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">6.</strong><span style="background-color: white; color: #333333; font-family: Arial, SimSun, 'Lucida Sans', 'lucida sans unicode', sans-serif; line-height: 18px;"> </span><span class="tc_sub" style="background-color: white; color: #a0a0a0; font-family: Arial, SimSun, 'Lucida Sans', 'lucida sans unicode', sans-serif; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">不及物动词 [+goods] </span><span style="background-color: white; color: #333333; font-family: Arial, SimSun, 'Lucida Sans', 'lucida sans unicode', sans-serif; line-height: 18px;"></span><span style="background-color: white; color: #333333; font-family: Arial, SimSun, 'Lucida Sans', 'lucida sans unicode', sans-serif; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><a href="http://www.nciku.cn/search/zh/%E5%87%BD%E8%B4%AD" style="color: #333333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">函购</a>某物</span></li>
</ol>
<div>
<span style="color: #333333; font-family: Arial, SimSun, 'Lucida Sans', 'lucida sans unicode', sans-serif;"><span style="line-height: 17px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: Arial, SimSun, 'Lucida Sans', 'lucida sans unicode', sans-serif;"><span style="line-height: 17px;">【翻译PK】@译言训练营</span></span></div>
<br />Common sense and a sense of humor are the same thing, moving at different speeds. A sense of humor is just common sense, dancing." (Clive James, born 7 October 1939)<br /><br /><br />常识和幽默其实是不同频率的同种事物。幽默是舞动的常识。</dd>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-58238831329560205812012-05-03T05:22:00.001+08:002012-05-03T05:22:59.069+08:00[每日一译]suffice it to say<br />
<h1 style="background-color: white; color: #333333; font-family: arial, sans-serif; font-size: 28px; line-height: 32px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
suffice it to say</h1>
<div>
<span style="background-color: white; font-family: Arial; font-size: 14px; line-height: 22px;">只要说...就够了.</span>
<br />
<span style="background-color: white; font-family: Arial; font-size: 14px; line-height: 22px;"><br /></span><br />
<span style="background-color: white; font-family: Arial; font-size: 14px; line-height: 22px;">[翻译PK]@译言训练营</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">Who says nothing is impossible. I've been doing nothing for years. </span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
谁说无事是不可能的。我就无事好多年了。</span></div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-18249144677831025632012-05-03T05:18:00.002+08:002012-05-03T05:22:59.066+08:00[每日一译]veer toward<span style="font-family: Arial, Helvetica, sans-serif;"><b>veer toward someone or something</b>:<br /><br />to turn sharply or swerve toward someone or something.</span><div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">The car suddenly veered toward me. The horse veered toward the side of the bridle path.</span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
[翻译PK] <a href="http://www.weibo.com/10162011" target="_blank">@译言训练营</a><br />Don't worry about the world coming to an end today. It is already tomorrow in Australia. <div>
<br /></div>
别担心今天世界末日要来,人家澳洲都已经是明天啦。TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-72627035307161481312012-05-01T06:50:00.003+08:002012-05-01T06:50:49.939+08:00[每日一译]A game<span style="background-color: white; font-family: 'Droid Sans', Arial, sans-serif; font-size: 14px; line-height: 18px; text-align: justify;">A game:</span><br />
<br />
<div class="definition" style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 19px;">
a)A player's(or his lesser counterparts) best <a href="http://www.urbandictionary.com/define.php?term=game" style="background-color: #6698cb; color: #fbffea; padding-bottom: 2px; padding-left: 3px; padding-right: 3px; padding-top: 2px; text-decoration: none;">game</a>, one usually brings his A game when the women are more attractive and therefore a greater challenge. Derived from the letter grade in school, "A"<br /><br />b)The term can also be used for other definitions of <a href="http://www.urbandictionary.com/define.php?term=game" style="background-color: #6698cb; color: #fbffea; padding-bottom: 2px; padding-left: 3px; padding-right: 3px; padding-top: 2px; text-decoration: none;">game</a></div>
<div class="example" style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: italic; line-height: 19px; margin-bottom: 5pt; margin-top: 5pt;">
a)"didn't get her number?"<br />"She just didn't see my A game"<br />"She didn't see your B or C game either."<br /><br />b)"better bring your A game for the halo tournament"</div>
<div class="example" style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: italic; line-height: 19px; margin-bottom: 5pt; margin-top: 5pt;">
<br /></div>
<div class="example" style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: italic; line-height: 19px; margin-bottom: 5pt; margin-top: 5pt;">
<div class="definition" style="font-style: normal;">
To be on top of your A game means to be prepared for a hook up. To be shaven, clean, and ready to go.</div>
<div class="example" style="margin-bottom: 5pt; margin-top: 5pt;">
Liz my A game is amazing tonight! I cant wait to get it in!</div>
<div class="example" style="margin-bottom: 5pt; margin-top: 5pt;">
<br /></div>
</div>
<br />
<span style="background-color: white; font-family: 'Droid Sans', Arial, sans-serif; font-size: 14px; line-height: 18px; text-align: justify;">good luck charm: is an object which is supposed to bring good luck to its carrier. </span><br />
<span style="background-color: white; font-family: 'Droid Sans', Arial, sans-serif; font-size: 14px; line-height: 18px; text-align: justify;"><br /></span><br />
<span style="background-color: white; font-family: 'Droid Sans', Arial, sans-serif; font-size: 14px; line-height: 18px; text-align: justify;">[翻译PK]<a href="http://www.weibo.com/10162011" target="_blank">@译言训练营</a></span><br />
<span style="background-color: white; font-family: 'Droid Sans', Arial, sans-serif; font-size: 14px; line-height: 18px; text-align: justify;"><br /></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">A celebrity is a person who works hard all his life to become well known, then wears dark glasses to avoid being recognized. <br /><br />名人这一辈子,一开始苦干是为了出名,出名了却又戴着墨镜生怕被认出来。</span>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-54231966965375349362012-04-28T06:37:00.000+08:002012-04-28T06:38:02.328+08:00[每日一译]in large measure<span style="background-color: white; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; line-height: 21px;"> </span><strong style="background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; font-weight: bold; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">in large measure</strong><span style="background-color: white; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; line-height: 21px;">, dating from the same period, means “to a considerable extent,” </span><br />
<span style="background-color: white; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; line-height: 21px;"><br /></span><br />
<span style="background-color: white; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; line-height: 21px;"> </span><span class="italic" style="background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; font-style: italic; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">In large measure the two sides agree</span><span style="background-color: white; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; line-height: 21px;">. </span>
<br />
<span style="background-color: white; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; line-height: 21px;"><br /></span><br />
<span style="background-color: white; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; line-height: 21px;">[翻译PK]<a href="http://www.weibo.com/10162011" target="_blank">@译言训练营</a></span><br />
<span style="background-color: white; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; line-height: 21px;"><br /></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">A blind person who sees is better than a seeing person who is blind. </span><br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">有的人瞎了,但是他能看见,好过有的人没瞎,但是他看不见。</span></div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-66234992699340345432012-04-26T19:46:00.001+08:002012-04-26T19:59:18.778+08:00[每日一译]make terms with<span style="font-family: Arial, Helvetica, sans-serif;">make terms with:与……谈判</span><br />
<br />
<br />
[翻译PK]<a href="http://www.weibo.com/10162011">@译言训练营</a><br />
<div>
<br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">A young man's ambition is to get along in the world and make a place for himself-half your life goes that way, till you're 45 or 50. Then, if you're lucky, you make terms with life, you get released. (Robert Penn Warren, April 24, 1905 – September 15, 1989) </span><span style="color: #444444; font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span><br />
年轻人的远大理想是与世界和平共处,并且给自己找一个容身之处——在45或50岁之前人生都是这么过的。如果你够幸运的话,与人生谈判,就可以得释放了。 </div>
</div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-19839032819670039722012-04-26T19:46:00.000+08:002012-04-26T19:59:18.774+08:00[每日一译]cry one's heart out<span style="font-family: Arial, Helvetica, sans-serif;">cry one's heart out and sing one's heart out; play one's heart out; sob one's heart out<br />Fig. to do something with vigor or intensity. </span><div>
<span style="font-family: Arial, Helvetica, sans-serif;"><i><span style="color: #45818e;">She suffered such grief—alone and sobbing her heart out. The bird sang its little heart out each morning.</span></i><br /><br />drum into:<br /><br />drum something into someone and drum something into someone's head; drumsomething in<br />Fig. to teach someone something intensely.</span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><i><span style="color: #45818e;">Her mother had drummed good manners into her. She drummed in good manners day after day.</span></i></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><i><span style="color: #45818e;"><br /></span></i></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">[翻译PK] <a href="http://www.weibo.com/10162011" target="_blank">@译言训练营</a></span></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
When I was 14, I was the oldest I ever was. I've been getting younger ever since." (by Shirley Temple, born April 23, 1928)</span><div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><div>
<span style="font-family: Arial, Helvetica, sans-serif;">我14岁是我最老的时候。从那以后我都在变小。</span></div>
</div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-48224441431057633912012-04-22T15:50:00.000+08:002012-04-22T16:12:08.223+08:00[每日一译]make it plain<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">make it plain :</span>明确说明<br />
<br />
<div>
<br />
[翻译PK]<a href="http://www.weibo.com/10162011" target="_blank">@译言训练营</a><br />
<span style="font-family: Arial, Helvetica, sans-serif;">Complexity that works is built up out of modules that work perfectly, layered one over the other. (by Kevin Kelly) <br /><br />用完美性能模块搭建的作品,其复杂度,是一层层的叠加。</span><br />
未解决</div>
<span style="font-family: Arial, Helvetica, sans-serif;">I'm not stunned, or even much scared, really; definitely not sickened, repulsed.</span></div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-36151485139758905092012-04-21T18:30:00.003+08:002012-04-21T18:30:45.858+08:00别再哭得如此伤心——Oasis<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="background-color: white; margin-bottom: 9px; margin-top: 9px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; text-align: -webkit-auto; word-break: break-all; word-wrap: break-word;">
</div>
<div style="color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.8; text-align: center;">
<span style="background-color: #f9f9f9; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px;">Stop crying your heart out </span></div>
<span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="text-align: center;">
<span style="color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.8;">别再哭得如此伤心 </span></div>
<div style="text-align: center;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 20px;"><br /></span></div>
<span style="background-color: #f9f9f9; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="text-align: center;">
Hold up hold on don't be scared</div>
</span></span><br />
<div style="background-color: white; margin-bottom: 9px; margin-top: 9px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; text-align: -webkit-auto; word-break: break-all; word-wrap: break-word;">
</div>
<div style="text-align: center;">
<span style="color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.8;">挺住,坚持,别怕</span><span style="font-size: 14px; line-height: 1.8;"> </span></div>
<span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="text-align: center;">
<span style="background-color: #f9f9f9; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;">You'll never change what's been and gone</span></div>
<span style="color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.8;"><div style="text-align: center;">
<span style="line-height: 1.8;">过去的永远无法改变</span><span style="line-height: 1.8;"> </span></div>
</span><span style="background-color: #f9f9f9; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="text-align: center;">
May your smile. Shine on. Don't be scared</div>
</span><span style="color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.8;"><div style="text-align: center;">
<span style="line-height: 1.8;">望你笑容再次绽放。别怕</span><span style="line-height: 1.8;"> </span></div>
</span><span style="background-color: #f9f9f9; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="text-align: center;">
Your destiny may keep you warm</div>
</span><span style="color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.8;"><div style="text-align: center;">
<span style="line-height: 1.8;">神的旨意会让你温暖</span><span style="line-height: 1.8;"> </span></div>
</span><span style="background-color: #f9f9f9; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="text-align: center;">
Cos all of the stars are fading away</div>
</span><span style="color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.8;"><div style="text-align: center;">
<span style="line-height: 1.8;">因为璀璨的星都要失去光泽</span><span style="line-height: 1.8;"> </span></div>
</span><span style="background-color: #f9f9f9; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="text-align: center;">
Just try not to worry you'll see them some day</div>
</span><span style="color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.8;"><div style="text-align: center;">
<span style="line-height: 1.8;">只要努力不要忧虑,你有一天也能见到他们</span><span style="line-height: 1.8;"> </span></div>
</span><span style="background-color: #f9f9f9; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="text-align: center;">
Take what you need and be on your way</div>
</span><span style="color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.8;"><div style="text-align: center;">
<span style="line-height: 1.8;">背起你的行囊走下去</span><span style="line-height: 1.8;"> </span></div>
</span><span style="background-color: #f9f9f9; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="text-align: center;">
And stop crying your heart out</div>
</span><span style="color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.8;"><div style="text-align: center;">
<span style="line-height: 1.8;">别再哭得如此伤心</span><span style="line-height: 1.8;"> </span></div>
</span><span style="background-color: #f9f9f9; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="text-align: center;">
Get up. Come on why you scared</div>
</span><span style="color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 25px;"><div style="text-align: center;">
振作起来。有什么好怕的? </div>
</span><span style="background-color: #f9f9f9; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="text-align: center;">
You'll never change what been and gone</div>
</span></span><br />
<div style="background-color: white; color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.8; margin-bottom: 9px; margin-top: 9px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; text-align: center; word-break: break-all; word-wrap: break-word;">
<span style="font-size: 14px; line-height: 1.8;">过去的永远无法改变</span></div>
<div style="background-color: white; color: #353535; font-family: Tahoma, Helvetica, Arial, sans-serif; margin-bottom: 9px; margin-top: 9px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; text-align: -webkit-auto; word-break: break-all; word-wrap: break-word;">
<span style="font-size: 14px; line-height: 25px;"><br /></span></div>
</div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-88391259094037424562012-04-21T06:27:00.000+08:002012-04-21T06:28:05.508+08:00[每日一译]means and ends<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">means and ends:手段和目的</span><br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">[翻译PK]<a href="http://www.weibo.com/10162011" target="_blank">@译言训练营</a></span></div>
<div>
<br /></div>
<span style="font-family: Arial, Helvetica, sans-serif;">Changing things from the top down works when things are stable.(Kevin Kelly) </span><br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br />什么都稳定的时候颠倒一下会很有效。</span></div>
</div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-81752463154844887202012-04-19T05:34:00.000+08:002012-04-20T05:35:38.666+08:00[每日一译]throw together<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="font-size: 13px; text-align: -webkit-auto;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: #45818e;"><span class="hw">throw <span class="idir">something</span> together</span> <i>also</i> </span><b><span style="color: #45818e;">throw together </span><span class="idir"><span style="color: #45818e;">something</span> :</span></b></span></div>
<div class="ds-single" style="font-size: 13px; text-align: -webkit-auto;">
<span style="font-family: Arial, Helvetica, sans-serif;">to create something quickly without preparation </span></div>
<div class="ds-single" style="font-size: 13px; text-align: -webkit-auto;">
<span style="font-family: Arial, Helvetica, sans-serif;"><i><span class="illustration">We came home late and I just threw something together for us to eat.</span> </i></span></div>
<div class="ds-single" style="font-size: 13px; text-align: -webkit-auto;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span class="illustration"><i>It was one of those low-cost movies that studios often throw together.</i></span></span></div>
<div class="ds-single">
<div style="font-size: 13px;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span class="illustration"><br /></span></span></div>
<div style="font-size: 13px;">
<span style="font-family: Arial, Helvetica, sans-serif;">[翻译PK]<a href="http://www.weibo.com/10162011" target="_blank">@译言训练营</a></span></div>
<span style="font-family: Arial, Helvetica, sans-serif;"> I like to have a martini, Two at the very most. After three I'm under the table, after four I'm under my host. (by Dorothy Parker [1893-1967]) <br /><br />想要来杯马丁尼,不能超过两杯。三杯倒下,四杯上床。</span></div>
<div class="ds-single" style="font-size: 13px; text-align: -webkit-auto;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span class="illustration"><br /></span></span></div>
</div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-16667485818656779012012-04-18T05:39:00.002+08:002012-04-18T16:34:28.654+08:00[每日一译]embark on<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">embark on </span><div>
<span style="font-family: Arial, Helvetica, sans-serif;">v. <br />开始,从事,着手…<br /><br />同: <br />[v.] <a href="http://dict.hjenglish.com/w/commence">commence</a>, <a href="http://dict.hjenglish.com/w/start">start</a>, <a href="http://dict.hjenglish.com/w/start%20up">start up</a><br /><br /><a href="http://dict.hjenglish.com/w/embark%20on###">英英解释</a><br /><br />动词解释:-get off the ground<br /><br /><i>We embarked on an exciting enterprise</i><br /><br />[同] <a href="http://dict.hjenglish.com/w/commence">commence</a>, <a href="http://dict.hjenglish.com/w/embark%20on">embark on</a>, <a href="http://dict.hjenglish.com/w/start">start</a>, <a href="http://dict.hjenglish.com/w/start%20up">start up</a></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><b>[翻译PK]<a href="http://www.weibo.com/10162011" target="_blank">@译言训练营</a></b><br />All imaginable futures are not equally possible. (by Kevin Kelly) <br /><br />可以想象的未来不见得都能触碰得到。 <br /><br /><b>[未解决问题]</b><br />He was viewed as eccentric and had <span style="color: red;">more than his share</span> of personal and familial sorrow. </span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
</div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-9596953404318932402012-04-17T04:27:00.001+08:002012-04-17T04:28:26.065+08:00如何开发jQuery 插件<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="Section0">
<h1 style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="font-family: 'Times New Roman'; font-size: 14pt;">如何开发</span><span style="font-family: 'Times New Roman'; font-size: 14pt;">jQuery <span style="font-family: 'Times New Roman';">插件</span></span><span style="font-family: 'Times New Roman'; font-size: 14pt;"><o:p></o:p></span></h1>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 10pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt; text-align: right;">
<span style="font-family: 宋体; font-size: 12pt;"><a href="http://codeciel.blogspot.fr/2012/04/how-to-develop-jquery-plugins.html" target="_blank">原文地址</a></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt; text-align: right;">
<span style="font-size: x-small;"><span style="font-family: 宋体;">基于 jQuery 官方网站<a href="http://docs.jquery.com/Plugins/Authoring#Getting_Started" target="_blank">Plugins/Authoring</a></span><span style="font-family: 宋体;">页面的说明改编</span></span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt; text-align: right;">
<span style="font-family: 宋体; font-size: 12pt;">发表时间:2012年4月3日</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">jQuery是最流行的JavaScript库,很多网站都使用jQuery。jQuery常被用来做动态效果或实现Ajax的功能。但是,相对而言,很少开发者会去深入研究插件的开发。</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">这篇文章将会概述关于插件编写的基础知识,最佳实践(Best Practices),以及刚开始编写插件时需要注意的常见陷阱。</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"></span></div>
<a name='more'></a><br />
<br />
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">目录</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">1.</span><span style="font-family: 宋体; font-size: 12pt;">新手入门</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">2.</span><span style="font-family: 宋体; font-size: 12pt;">背景介绍</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">3.</span><span style="font-family: 宋体; font-size: 12pt;">基础知识</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">4.</span><span style="font-family: 宋体; font-size: 12pt;">维护chainability(jQuery魔术)</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">5.</span><span style="font-family: 宋体; font-size: 12pt;">默认和选项</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">6.</span><span style="font-family: 宋体; font-size: 12pt;">命名空间</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: -21.0000pt;">
<span style="font-family: 宋体; font-size: 12pt;">a) </span><span style="font-family: 宋体; font-size: 12pt;">插件方法</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: -21.0000pt;">
<span style="font-family: 宋体; font-size: 12pt;">b) </span><span style="font-family: 宋体; font-size: 12pt;">事件</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: -21.0000pt;">
<span style="font-family: 宋体; font-size: 12pt;">c) </span><span style="font-family: 宋体; font-size: 12pt;">数据</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">7.</span><span style="font-family: 宋体; font-size: 12pt;">总结和最佳实践</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<h3 style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 'Times New Roman'; font-size: 12pt;">新手入门</span><span style="font-family: 'Times New Roman'; font-size: 12pt;"><o:p></o:p></span></h3>
<div>
<span style="font-family: 'Times New Roman'; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">通过扩展jQuery,可以创建在任何页面上都能使用的可重用组件。代码是已封装的,你可以在别的地方使用相同名字给函数命名,风险较小。</span><span style="font-family: 宋体; font-size: 12pt;"><br /></span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">要编写一个jQuery插件,从给jQuery.fn对象添加新的函数属性开始,新属性的名字应取为插件的名字。</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;">// jQuery.fn = jQuery.prototype = ... </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">jQuery.fn.myPlugin = function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">把你厉害的插件代码写在这里</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">};</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">但是,为了确保编写的插件与其他可能使用美元符号的库不冲突,将</span><span style="font-family: 宋体; font-size: 12pt;">jQuery变成</span><span style="font-family: 宋体; font-size: 12pt;">立即调用的函数表达式</span><span style="font-family: 宋体; font-size: 12pt;">IIFE</span><span style="font-family: 宋体; font-size: 12pt;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;">Immediately Invoked Function Expression</span><span style="font-family: 宋体; font-size: 12pt;">)是最优方案,</span><span style="font-family: 宋体; font-size: 12pt;">IIFE将插件映射给美元符号,以免在执行代码期间插件被另一个库覆盖。</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">(function ($) {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.myPlugin = function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">把你厉害的插件代码写在这里</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">变量范围</span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">闭包</span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // $: function (selector, context) {... };</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">})(jQuery);</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">在闭包里面,可以任意使用美元符号来代替</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">jQuery。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span class="15" style="font-family: 'Times New Roman'; font-size: 12pt; font-weight: bold;">背景介绍</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span class="15" style="font-family: 'Times New Roman'; font-size: 12pt; font-weight: bold;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">在掌握了一些基本知识后,我们可以开始编写自己的插件代码了。在那之前,先介绍一下相关背景。在插件函数的即时范围(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">immediate scope</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">)里,关键字</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">this指的是jQuery对象,插件会被立即调用。</span><span style="font-family: 宋体; font-size: 12pt;">这是一个常见误区</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; font-family: 宋体; font-size: 12pt;">,</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">因为在其他实例中,jQury是接受回调的,而this关键字指的是回调函数中源生DOM element。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">这常常会让开发者们将this关键字(再度)打包在jQuery函数中,这其实是不必要的。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">(function ($) {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.myPlugin = function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">这里没有必要使用</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $(this) </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">因为</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">"this" </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">已经是</span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">jquery<span style="font-family: 宋体;">的一个对象了</span></span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // $(this) </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">其实就是</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $($('#element')); </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;">// </span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">本地</span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // this: jQuery.fn.jQuery.init[1] </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // 0: HTMLDivElement </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // context: HTMLDocument </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // length: 1 </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // selector: "#element" </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> this.fadeIn('normal', function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // this</span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">关键字是</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">DOM element </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;">// </span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">本地</span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 宋体; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // this: HTMLDivElement </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // id: "element" var that = this; </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">本地</span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // $this: jQuery.fn.jQuery.init[1] </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // 0: HTMLDivElement </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // context : HTMLDivElement </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // length: 1 </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> var $this = $(this);</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> });</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">})(jQuery);</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">$('#element').myPlugin();</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span class="15" style="font-family: 'Times New Roman'; font-size: 12pt; font-weight: bold;">基础知识</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span class="15" style="font-family: 'Times New Roman'; font-size: 12pt; font-weight: bold;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">在了解了</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">jQuery</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">插件的相关背景之后,现在来练练手,编写个能实现某种功能的插件吧。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">(function ($) {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.maxHeight = function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> var max = 0;</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> this.each(function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">闭包</span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> : max </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> max = Math.max(max, $(this).height());</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> });</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> return max;</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">})(jQuery);</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">var tallest = $('div').maxHeight(); // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">返回最高的</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">div<span style="font-family: 宋体;">的高度</span></span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">这是一个简单的插件,使用</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;">.height() </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">返回该页面最高</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;">div</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">的高度。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span class="15" style="font-family: 'Times New Roman'; font-size: 12pt; font-weight: bold;">维持</span><span class="15" style="font-family: 'Times New Roman'; font-size: 12pt; font-weight: bold;">Chainability</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span class="15" style="font-family: 'Times New Roman'; font-size: 12pt; font-weight: bold;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">之前的例子返回的是页面上最高</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">div<span style="font-family: 宋体;">的整数值。但是,插件常被用来改变集合中的元素,然后将他们传递给链中的下一个方法。这就是</span><span style="font-family: Verdana;">jQuery</span><span style="font-family: 宋体;">设计的美妙之处,也是</span><span style="font-family: Verdana;">jQuery</span><span style="font-family: 宋体;">如此盛行的原因之一。因此为了维护插件中的</span><span style="font-family: Verdana;">chainability</span><span style="font-family: 宋体;">,必须得确保插件返回了</span><span style="font-family: Verdana;">this</span><span style="font-family: 宋体;">关键字。</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">(function ($) {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.lockDimensions = function (type) {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // .each(function(index, Element)) </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">对每个匹配的元素,</span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;">jQuery</span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">对象重复执行函数</span><span style="color: red; font-family: 宋体; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">返回</span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;">jQuery </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> return this.each(function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> var $this = $(this);</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> if (!type || type == 'width') {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $this.width($this.width());</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> if (!type || type == 'height') {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $this.height($this.height());</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> });</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">})(jQuery);</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">$('div').lockDimensions('width').css('color', 'red');</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">由于插件在即时范围中返回了</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">this<span style="font-family: 宋体;">关键词,因此它维持了</span><span style="font-family: Verdana;">chainability</span><span style="font-family: 宋体;">,并且</span><span style="font-family: Verdana;">jQuery</span><span style="font-family: 宋体;">方法可以继续操作</span><span style="font-family: Verdana;">jQeury</span><span style="font-family: 宋体;">集合,例如</span><span style="font-family: Verdana;">.css</span><span style="font-family: 宋体;">。所以,如果插件没有返回一个本身的值,就需要在插件函数的即时范围内一直返回关键字</span><span style="font-family: Verdana;">this</span><span style="font-family: 宋体;">。同样的,在插件调用中传递的参数可能被传递给插件函数的即使范围。因此在之前的例子中,字符串“</span><span style="font-family: Verdana;">width</span><span style="font-family: 宋体;">”变为插件函数的参数。</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">默认和选项</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 12pt; font-weight: bold;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 12pt; font-weight: bold;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">对于可以提供很多选项的复杂和可定制的插件,在插件被调用时,默认设置能被扩展(使用</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 12pt;">$.extend</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">)是最优方案。因此,无须调用具有大量参数的插件,可以只调用想要覆盖的对象字面量(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt; font-style: italic; font-weight: bold;">object literal</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">)设置作为参数。以下是使用方法。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">(function ($) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.tooltip = function (options) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">创建一些默认参数,使用提供的选项扩展它们</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;">// var defaults = {...}; var settings = $.extend({}, defaults, options); </span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">也可以做到</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var settings = $.extend({</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> 'location': 'top',</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> 'background-color': 'blue'</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }, options);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return this.each(function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;">// </span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">此处为</span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">tooltip<span style="font-family: 宋体;">插件</span></span><span style="color: red; font-family: 宋体; font-size: 10.5pt;">代码</span><span style="color: red; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> });</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">})(jQuery);</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">$('div').tooltip({ 'location' : 'left' });</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">在这个例子当中,在用给定选项调用</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">tooltip</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">插件后,默认的</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">location<span style="font-family: 宋体;">设定被覆盖为“</span><span style="font-family: Verdana;">left</span><span style="font-family: 宋体;">”,而</span><span style="font-family: Verdana;">bakground-color</span><span style="font-family: 宋体;">的设定仍然是默认的“</span><span style="font-family: Verdana;">blue</span><span style="font-family: 宋体;">”。因此最终的设置对象应该是这样:</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">{ 'location' : 'left', 'background-color' : 'blue' }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">高度可配置插件的实用性之一就是它不要求开发者定义所有可用的选项。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">命名空间</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 12pt; font-weight: bold;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">插件开发中,合适地命名空间(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">namespace</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">)十分重要。正确地命名空间可以降低插件被其他插件或者同页面上代码覆盖的可能性。命名空间同样也会让你的生活更容易,因为它能更好地跟踪方法,事件以及数据。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;">· </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">插件方法</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 12pt; font-weight: bold;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">Plugin Methods</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">)</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体;">在</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana;">jQuery.fn</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体;">对象中单单一个插件是不可能有多个命名空间的。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">(function ($) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.tooltip = function (options) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">这</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.tooltipShow = function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">很</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.tooltipHide = function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">糟糕</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.tooltipUpdate = function (content) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // !!</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">!</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">})(jQuery);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">这是一个不好的例子,因为它堆满了</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 12pt;">$.fn </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">命名空间。为了补救,应该将所有插件方法放在同一个对象字面量里,通过将方法名传递给插件来调用方法。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<br /></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">(function ($) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var methods = {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> init: function (options) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">这</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> show: function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">很</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> hide: function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">好</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> update: function (content) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // !!! </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.tooltip = function (method) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">写方法需要逻辑</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (methods[method]) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> } else if (typeof method === 'object' || !method) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return methods.init.apply(this, arguments);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> } else {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $.error('Method ' + method + ' does not exist on jQuery.tooltip');</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">})(jQuery);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">// </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">调用</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">init </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">方法</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">$('div').tooltip(); </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">// </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">调用</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">init </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">方法</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">$('div').tooltip({ foo : 'bar' });</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">// </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">调用</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">hide </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">方法</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $('div').tooltip('hide'); </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">// </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">调用</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">update </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">方法</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $('div').tooltip('update', 'This is the new tooltip content!');</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">这种插件结构允许将你所有的方法封装在插件的父闭包里,并首先通过传递方法名来调用该方法,然后将所需的额外参数传递给该方法。这种方法的封装和结构在</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">jQuery插件社区中是一种标准,数不清的插件都使用这种标准,包括jQueryUI里面的插件和小工具。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;">· </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">事件</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">Bind<span style="font-family: 宋体;">方法</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">具有</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">更不为人所知的另一特性,就是它允许为已绑定事件命名空间。如果插件绑定了事件,将其命名空间是很好的方法。这样的话,如果之后需要将其解除绑定,并不会干预到其他可能已经绑定给同类事件的其他事件。可以通过添加</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 12pt;"> ".<namespace>"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">到正在绑定事件的类型,就可以命名空间事件了。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<br /></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">(function ($) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var methods = {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> init: function (options) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return this.each(function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $(window).bind('resize.tooltip', methods.reposition);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> });</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> destroy: function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return this.each(function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $(window).unbind('.tooltip');</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> })</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> reposition: function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // ... </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> show: function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // ... </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> hide: function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // ... </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> update: function (content) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // ... </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.tooltip = function (method) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (methods[method]) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> } else if (typeof method === 'object' || !method) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return methods.init.apply(this, arguments);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> } else {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $.error('Method ' + method + ' does not exist on jQuery.tooltip');</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> })(jQuery);</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">$('#fun').tooltip(); // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">一段时间以后</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">... $('#fun').tooltip('destroy');</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">在这个例子当中,当用</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">init<span style="font-family: 宋体;">方法初始化</span><span style="font-family: Verdana;">tooltip</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">时,在空间命名</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">'tooltip'<span style="font-family: 宋体;">下,</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">它将</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">reposition<span style="font-family: 宋体;">方法绑定给窗口的</span><span style="font-family: Verdana;">resize</span><span style="font-family: 宋体;">事件。之后,如果开发者需要销毁</span><span style="font-family: Verdana;">tooltip</span><span style="font-family: 宋体;">,就可以将通过传递命名空间被插件绑定的事件解除绑定。这样可以安全地解除绑定,而不会无端将在插件外部绑定的事件解除绑定。</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;">· </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">数据</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">在插件开发中,可能常常需要维持状态或者检查在给定的元素上的插件是否已经初始化了。在每个元素的基础之上,使用</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">jQuery的data方法跟踪变量是一个很好的方法。尽管如此,最好使用单一一个对象字面量来储存所有变量,继而通过单一的数据命名空间读取该对象,而不是用不同名字跟踪一大把分散的数据调用。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt; line-height: 14.25pt;">(function ($) {</span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> var methods = {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> init: function (options) {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> return this.each(function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // .data(key, value) </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">返回</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> : jQuery </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">储存任意与匹配元素关联的数据。</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> var $this = $(this),</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> data = $this.data('tooltip'),</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> tooltip = $('<div />', {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> text: $this.attr('title')</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> });</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">如果插件还没被初始化</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> if (!data) {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> /* </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">这里做更多的搭建工作</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> */</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $(this).data('tooltip', {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> target: $this,</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> tooltip: tooltip</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> });</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> });</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> destroy: function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> return this.each(function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> var $this = $(this),</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> data = $this.data('tooltip');</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">命名空间啦</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $(window).unbind('.tooltip');</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> data.tooltip.remove();</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $this.removeData('tooltip');</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> })</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> reposition: function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // ... </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> show: function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // ... </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> hide: function () {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // ... </span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> update: function (content) {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> // ...</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.tooltip = function (method) {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> if (methods[method]) {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> } else if (typeof method === 'object' || !method) {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> return methods.init.apply(this, arguments);</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> } else {</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> $.error('Method ' + method + ' does not exist on jQuery.tooltip');</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;">})(jQuery);</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;">从插件中使用数据帮助跟踪变量和状态,不需要调用方法。命名空间数据为对象字面量,可以让中心位置访问插件的属性更为容易,同样地,可以减少数据命名空间,使得在需要删除的时候变得容易。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">总结和最佳练习</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 12pt; font-weight: bold;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">编写</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">jQuery<span style="font-family: 宋体;">插件可以最大地利用库,并且将最好用的方法抽象化为可重用代码,既可以节省时间,又可以让开发更有效率。以下是该帖的简短总结,在开发第一个或者下一个</span><span style="font-family: Verdana;">jQuery</span><span style="font-family: 宋体;">插件的时候要谨记在心:</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;">· </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">将插件打包在闭包中</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;">: (function( $ ){ /* </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">插件在这里</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;"> */ })( jQuery );</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;">· </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">不要太多地将</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">this<span style="font-family: 宋体;">关键字打包在插件函数的即时范围之内</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;">· </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">除非从插件中返回一个内部值,插件函数都要返回</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">this<span style="font-family: 宋体;">关键字以保持</span><span style="font-family: Verdana;">chainability</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;">· </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">不要传递一长串参数,将插件设置放在对象字面量中,这样就可以扩展插件默认设置</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;">· </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">不要乱堆</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;">jQuery.fn</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">对象,一个插件不可以有多个命名空间</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;">· </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">方法,事件和数据一定要有命名空间</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;">.</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;">· </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">让插件可以自己初始化</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">使用</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">jQuery插件模板</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 15.4000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 15.4000pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">以下是根据该帖内容,为开发新插件所写的模板代码:</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;">(function ($) {</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">私有成员或函数</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> </span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> //...TODO </span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">公有函数</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> </span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> var methods = {</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> init: function (options) {</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> var defaults = {</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> //...TODO </span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> };</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> var opts = $.extend({}, defaults, options);</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> return this.each(function () {</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> //...TODO </span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> });</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> },</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> destroy: function () {</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> //...TODO </span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> },</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> update: function () {</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> //...TODO </span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> }</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">在这里可以添加其他方法,但是别忘了逗号</span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> };</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">将</span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">P</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;">LUGIN_NAME</span><span style="color: #333333; font-family: 宋体; font-size: 10.5pt;">更换为自己插件的名字</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> $.fn.PLUGIN_NAME = function (method) {</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> if (methods[method]) {</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> } else if (typeof method === 'object' || !method) {</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> return methods.init.apply(this, arguments);</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> } else {</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> $.error('Method ' + method + ' does not exist on jQuery.PLUGIN_NAME');</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> }</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"> };</span><span style="color: #333333; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #333333; font-family: Verdana; font-size: 10.5pt;">})(jQuery);</span><span style="color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">还有,你可以使用一个更简单的模板,由</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;"> </span><a href="https://github.com/geetarista"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: blue; font-family: 宋体; font-size: 10.5pt;">geetarista</span></a><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; font-family: 宋体; font-size: 10.5pt;">创建的</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">简单情况下该模板工作地不错,但是并不坚固</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> /**</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> * jQuery PLUGIN_NAME Plugin</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> * Version: x.x.x</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> * URL: URL</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> * Description: DESCRIPTION</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> * Requires: JQUERY_VERSION, OTHER_PLUGIN(S), ETC. </span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> * Author: AUTHOR (AUTHOR_URL)</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> * Copyright: Copyright 2010 YOUR_NAME</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> * License: LICENSE_INFO</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> */</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;">// </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">插件闭包</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">wrapper</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;">(function ($) {</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">主要的插件函数</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // Replace PLUGIN with the name of your desired function</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> $.fn.PLUGIN = function (options) {</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">用插件默认设置覆盖用户选项</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> var opts = $.extend({}, $.fn.PLUGIN.defaults, options);</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">通过</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;">DOM elements </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">重复</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> return this.each(function () {</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">为方便使用,将现在的对象赋值给一个变量</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> var $this = $(this);</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">这就是大部分插件功能所在</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> }); // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">结束返回</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;">this.each</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> }; // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">结束</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;">$.fn.PLUGIN</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">公有插件函数</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">用自己的插件函数名替换</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;">PLUGIN</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">用公有函数名替换</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;">FUNCT</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> $.fn.PLUGIN.FUNCT = function () {</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">很酷的</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">JS<span style="font-family: 宋体;">行为</span></span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> }; // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">结束</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;">$.fn.PLUGIN.FUNCT</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">为插件默认设置</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> $.fn.PLUGIN.defaults = {</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> property: "value",</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> anotherProperty: 10</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">在插件里面使用私有函数</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> function privateFunction() {</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">很酷的</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">JS<span style="font-family: 宋体;">行为</span></span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: Verdana; font-size: 10.5pt;">})(jQuery); // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">结束闭包</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">wrapper</span><span style="color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">在结束该帖之前,我将</span><a href="http://stackoverflow.com/users/419970/raynos"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: blue; font-family: 宋体; font-size: 10.5pt;">Raynos</span></a><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: Verdana; font-size: 10.5pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">创建的一个很厉害的</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 宋体; font-size: 10.5pt;">jQuery <span style="font-family: 宋体;">插件介绍给你们,该插件有最佳实践,惯例,性能和记忆影响。但是我认为你们需要有坚实的</span><span style="font-family: Verdana;">js</span><span style="font-family: 宋体;">基础来理解以下代码:</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 14.2500pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; color: #333333; font-family: 'Helvetica Neue Light'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">(function ($, jQuery, window, document, undefined) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var PLUGIN_NAME = "Identity";</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // default options hash.</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var defaults = {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // TODO: </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">添加默认参数</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // -------------------------------</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // -------- </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">样板文件</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> ----------</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // -------------------------------</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var toString = Object.prototype.toString,</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">元素的</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">uid </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> uuid = 0,</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> Wrap, Base, create, main;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> (function _boilerplate() {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">覆盖</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">bind</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">,使用默认的命名空间</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">命名空间是</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> PLUGIN_NAME_<uid></span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.bind = function _bind(type, data, fn, nsKey) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (typeof type === "object") {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> for (var key in type) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> nsKey = key + this.data(PLUGIN_NAME)._ns;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> this.bind(nsKey, data, type[key], fn);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return this;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> nsKey = type + this.data(PLUGIN_NAME)._ns;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return jQuery.fn.bind.call(this, nsKey, data, fn);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">覆盖</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">unbind </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">使用默认命名空间</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">.</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">添加新的重写</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">. .unbind() </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">不需要参数来解除绑定所有的方法</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">对于元素和插件而言</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">. </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">例如</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> calls .unbind(_ns)</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $.fn.unbind = function _unbind(type, fn, nsKey) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">处理对象字面量</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (typeof type === "object" && !type.preventDefault) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> for (var key in type) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> nsKey = key + this.data(PLUGIN_NAME)._ns;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> this.unbind(nsKey, type[key]);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> } else if (arguments.length === 0) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return jQuery.fn.unbind.call(this, this.data(PLUGIN_NAME)._ns);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> } else {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> nsKey = type + this.data(PLUGIN_NAME)._ns;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return jQuery.fn.unbind.call(this, nsKey, fn);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return this;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">创建一个新的</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">Wrapped<span style="font-family: 宋体;">元素。这在缓存里</span></span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">. </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">一个已打包元素</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> </span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">每个</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">HTMLElement. </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">使用</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">data-PLUGIN_NAME-cache </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">作为关键字</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">如果不存在就创建一个</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">.</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> create = (function _cache_create() {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> function _factory(elem) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return Object.create(Wrap, {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> "elem": {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> value: elem</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> "$elem": {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> value: $(elem)</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> "uid": {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> value: ++uuid</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> });</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var uid = 0;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var cache = {};</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return function _cache(elem) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var key = "";</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> for (var k in cache) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (cache[k].elem == elem) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> key = k;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> break;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (key === "") {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> cache[PLUGIN_NAME + "_" + ++uid] = _factory(elem);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> key = PLUGIN_NAME + "_" + uid;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return cache[key]._init();</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }());</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">基础对象,每个</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">Wrap<span style="font-family: 宋体;">都是从该基础对象继承而来</span></span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> Base = (function _Base() {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var self = Object.create({});</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // destroy</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">方法</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">. </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">解除锁定,删除数据</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> self.destroy = function _destroy() {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (this._alive) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> this.$elem.unbind();</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> this.$elem.removeData(PLUGIN_NAME);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> this._alive = false;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">初始化命名空间,将其储存在</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">elem<span style="font-family: 宋体;">里</span></span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">.</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> self._init = function _init() {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (!this._alive) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> this._ns = "." + PLUGIN_NAME + "_" + this.uid;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> this.data("_ns", this._ns);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> this._alive = true;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return this;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">在插件下返回</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">elem<span style="font-family: 宋体;">中储存的数据</span></span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">.</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> self.data = function _data(name, value) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var $elem = this.$elem,</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> data;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (name === undefined) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return $elem.data(PLUGIN_NAME);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> } else if (typeof name === "object") {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> data = $elem.data(PLUGIN_NAME) || {};</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> for (var k in name) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> data[k] = name[k];</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $elem.data(PLUGIN_NAME, data);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> } else if (arguments.length === 1) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return ($elem.data(PLUGIN_NAME) || {})[name];</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> } else {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> data = $elem.data(PLUGIN_NAME) || {};</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> data[name] = value;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $elem.data(PLUGIN_NAME, data);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return self;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> })();</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">直接调用方法</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">. $.PLUGIN_NAME(elem, "method", option_hash)</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var methods = jQuery[PLUGIN_NAME] = function _methods(elem, op, hash) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (typeof elem === "string") {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> hash = op || {};</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> op = elem;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> elem = hash.elem;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> } else if ((elem && elem.nodeType) || Array.isArray(elem)) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (typeof op !== "string") {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> hash = op;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> op = null;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> } else {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> hash = elem || {};</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> elem = hash.elem;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> hash = hash || {}</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> op = op || PLUGIN_NAME;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> elem = elem || document.body;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (Array.isArray(elem)) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var defs = elem.map(function (val) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return create(val)[op](hash);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> });</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> } else {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var defs = [create(elem)[op](hash)];</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return $.when.apply($, defs).then(hash.cb);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">公有化暴露</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">.</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> Object.defineProperties(methods, {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> "_Wrap": {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> "get": function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return Wrap;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> "set": function (v) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> Wrap = v;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> "_create": {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> value: create</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> "_$": {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> value: $</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> "global": {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> "get": function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return defaults;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> },</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> "set": function (v) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> defaults = v;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> });</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">主要插件</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">. $(selector).PLUGIN_NAME("method", option_hash)</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> jQuery.fn[PLUGIN_NAME] = function _main(op, hash) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> if (typeof op === "object" || !op) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> hash = op;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> op = null;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> op = op || PLUGIN_NAME;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> hash = hash || {};</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">将元素映射给</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">deferreds.</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var defs = this.map(function _map() {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return create(this)[op](hash);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }).toArray();</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> //</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">调用</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">cb</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">,返回</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">deffered.</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return $.when.apply($, defs).then(hash.cb);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }());</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // -------------------------------</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // --------- </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">你的代码</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> -----------</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // -------------------------------</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> main = function _main(options) {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> this.options = options = $.extend(true, defaults, options);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var def = $.Deferred();</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // Identity </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">返回</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">this & $elem.</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // TODO: </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">用自定义逻辑代码代替</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> def.resolve([this, this.elem]);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return def;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> Wrap = (function () {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var self = Object.create(Base);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> var $destroy = self.destroy;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> self.destroy = function _destroy() {</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> delete this.options;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // custom destruction logic</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">删除元素和其他事件</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> / </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">数据不储存在</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">.$elem</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">里</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> $destroy.apply(this, arguments);</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> };</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">将</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">PLUGIN_NAME </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">主函数设为主函数</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">.</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> self[PLUGIN_NAME] = main;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> // TODO: </span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;">为公有方法添加自定义逻辑代码</span><span style="color: #06263c; font-family: 宋体; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> return self;</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"> }());</span><span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; line-height: 14.25pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt;">
<span style="color: #06263c; font-family: 'Courier New'; font-size: 10.5pt;">})(jQuery.sub(), jQuery, this, document);</span><span style="color: #333333; font-family: 'Courier New'; font-size: 10.5pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
</div>
</div>
<br />
<div style="text-align: center;">
<span style="color: #999999;">转载请注明出处
</span></div>
</div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-36621438358066799812012-04-16T06:42:00.002+08:002012-04-16T07:26:14.553+08:00[每日一译] step up a gear<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="hw" style="background-color: white; font-family: Arial; font-size: 12pt; font-weight: bold;">move/step up a gear :</span><span style="background-color: white; font-family: Arial; font-size: 13px;">to start to work or play more effectively or quickly than before</span><span style="background-color: white; font-family: Arial; font-size: 13px;"> </span><br />
<span class="illustration" style="background-color: white; color: #226699; font-family: Arial; font-size: 13px; font-style: italic;"><br /></span><br />
<span class="illustration" style="background-color: white; color: #226699; font-family: Arial; font-size: 13px; font-style: italic;">With just five lengths to go, the German swimmer stepped up a gear and edged ahead to win the race.</span><br />
<span class="illustration" style="background-color: white; color: #226699; font-family: Arial; font-size: 13px; font-style: italic;"><br /></span><br />
<span style="color: #226699; font-family: Arial; font-size: x-small;"><br /></span><br />
[翻译PK] <a href="http://www.weibo.com/10162011" target="_blank">@译言训练营</a><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">"</span><span style="font-family: Arial, Helvetica, sans-serif;">By the time a man is 35 he knows that the images of the right man, the tough man, the true man which he received in high school do not work in life.”(by Robert Bly)</span><br />
一个男人到了35就知道,他高中认为的大男人形象,硬汉形象,和真男人形象,在现实生活中,全都行不通。<br />
<br />
<br />
<span style="color: red;">未解决问题</span><br />
<span style="color: red;"><br /></span><br />
<span style="font-family: Times, 'Times New Roman', serif;">To widespread criticism Günter Grass, a German Nobel literature laureate, published a <span style="color: red;">portentous </span>poem attacking Israel for its aggressive posture towards Iran. The Israeli government promptly banned Mr Grass from visiting the country.</span><div>
<span style="font-family: Times, 'Times New Roman', serif;"><br /></span></div>
<div>
<span style="color: #c27ba0; font-family: Times, 'Times New Roman', serif;">portentous 在此处不知道如何翻,各位客官看过来~~~</span></div>
</div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-3433908163380173862012-04-16T00:32:00.000+08:002012-04-17T23:46:31.492+08:00[每日一译]<div dir="ltr" style="text-align: left;" trbidi="on">
<br />[翻译PK]<a href="http://www.weibo.com/10162011" target="_blank">@译言训练营</a><br /><span style="font-family: Arial, Helvetica, sans-serif;">“I know a lot of men who are healthier at age fifty than they have ever been before, because a lot of their fear is gone.”(by Robert Bly) </span><br /><br />我认识很多男人,他们在50岁的时候达到身体状态的高峰期,因为他们的惧怕随着时间的流逝都离他们远去。 <br /><br /><br />未解决问题:<br /><br /><span style="font-family: Arial, Helvetica, sans-serif;">This post will outline the basics, <span style="color: red;">best practices</span>, and common pitfalls to watch out for, as you begin writing your plugin. </span><br /><br /><br /><span style="color: #c27ba0;">best practice到底怎么翻啊。。。</span></div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-20129003328913374622012-04-15T06:21:00.003+08:002012-04-15T06:22:09.682+08:00[每日一译]be bound to<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">be bound to</span> :<div>
<br />1.肯定,注定;一定要,决心 <br />2.一定会…,必然 <br />3.注定,必定</div>
<div>
<br /></div>
<div>
[翻译PK]<a href="http://www.weibo.com/10162011" target="_blank">@译言训练营</a></div>
<div>
<br /></div>
<div>
<div node-type="feed_list_content" style="color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px; zoom: 1;">
<span style="background-color: white;">The beginning of love is a horror of emptiness.”(by Robert Bly) 图为Robert Bly夫妇。</span></div>
<ul class="piclist" node-type="feed_list_media_prev" style="color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<li style="display: inline; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 9px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: top;"><div action-type="feed_list_media_img" class="chePicMin W_bgcolor_mini bigcursor" style="background-color: white; cursor: auto; display: inline-block; min-width: 60px; text-align: center; vertical-align: top;" suda-data="key=feed_image_click&value=image_zoomin">
<img alt="" class="bigcursor" node-type="feed_list_media_bgimg" src="http://ww3.sinaimg.cn/thumbnail/9dd8f8a7jw1drywguc4j0j.jpg" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; cursor: url(http://img.t.sinajs.cn/t4/style/images/common/big.cur), auto; vertical-align: top;" /></div>
</li>
</ul>
<div style="text-align: center;">
<span style="color: #444444; font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
</div>
<div style="text-align: left;">
<span style="background-color: white; color: #777777; font-size: 12px; line-height: 21px; text-align: -webkit-auto;"><span style="font-family: Georgia, 'Times New Roman', serif;">爱之初,乃是对空虚之惧。</span></span>
</div>
</div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-20270102941050942912012-04-14T03:42:00.000+08:002012-04-14T13:37:53.302+08:00[每日一译]delve into<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">delve into something:深入调查,研究</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">to examine or study something carefully; to enter into the examination or study of something.</span><br />
<i><span style="color: #6fa8dc; font-family: Arial, Helvetica, sans-serif;"> He delved into the solution of the problem facing him. I am just now delving into a study of the Trojan War.</span></i><br />
<br />
<br />
[翻译PK]
<a href="http://www.weibo.com/10162011" style="background-color: white; color: #ff9900; font-family: Times, 'Times New Roman', serif; font-size: 13px; line-height: 18px;" target="_blank">@译言训练营</a><br />
<div>
<em style="background-color: white; color: #777777; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; line-height: 20px;"><br /></em></div>
<div>
<em style="background-color: white; color: #777777; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; line-height: 20px;"><br /></em></div>
<div>
<span style="font-family: Georgia, 'Times New Roman', serif;"><em style="background-color: white; color: #777777; font-size: 12px; font-style: normal; line-height: 20px;">S</em><em style="background-color: white; color: #777777; font-style: normal; line-height: 20px;">ome men hope for revolution but when you revolt and set up your new government you find your new government is still the same old Papa, he has only put on a cardboard mask. (CHARLES BUKOWSKI, Notes of a Dirty Old Man)</em></span><br />
<dd node-type="feed_list_media_prev" style="color: #777777; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><ul class="piclist" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<li style="display: inline; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 9px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: top; zoom: 1;"><div action-type="feed_list_media_img" class="chePicMin W_bgcolor_mini bigcursor" style="background-color: white; cursor: auto; display: inline-block; min-width: 60px; text-align: center; vertical-align: top;" suda-data="key=feed_image_click&value=image_zoomin">
<img alt="" class="bigcursor" node-type="feed_list_media_bgimg" src="http://ww4.sinaimg.cn/thumbnail/9dd8f8a7jw1drxr8376toj.jpg" style="border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; cursor: url(http://img.t.sinajs.cn/t4/style/images/common/big.cur), auto; vertical-align: top;" /></div>
</li>
</ul>
</dd><br />
<div>
<br /></div>
有些人渴望革命,但是,当他们最终建立起新政权的时候却发现,到头来什么都没有变,只是多了一层新的面具而已。 <br />
<br />
[今日问题]<br />
<br />
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">Nor was this a question of buying off the lazy.</span></div>
</div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-50430029665689019742012-04-12T20:12:00.000+08:002012-04-12T21:58:24.766+08:00[每日一译]down the line<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">down the line</span> :十足的,彻底的<br />
<span style="font-family: Arial, Helvetica, sans-serif;">1. All the way; throughout: <i>Errors are to be found down the line.</i></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">2. At a point or an end in the future.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">[翻译PK] </span><a href="http://www.weibo.com/10162011" style="font-family: Times, 'Times New Roman', serif; text-align: -webkit-auto;" target="_blank">@译言训练营</a><br />
<span style="font-family: Times, 'Times New Roman', serif; text-align: -webkit-auto;"></span><br />
<div>
<span style="font-family: Times, 'Times New Roman', serif; text-align: -webkit-auto;"><span style="font-family: Times, 'Times New Roman', serif;"><br /></span></span></div>
<span style="font-family: Times, 'Times New Roman', serif; text-align: -webkit-auto;">I admire him. He was his own man, in search of himself." (by Mike Wallace)</span><div style="text-align: -webkit-auto;">
我羡慕他。来去自由,寻索自己。</div>
<br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span style="color: red; font-family: Arial, Helvetica, sans-serif;">未解决:Decide in haste, repent in leisure.</span><br />
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span style="color: #ea9999; font-family: Arial, Helvetica, sans-serif;">要是有一天浏览量上去了,有客官回答我的问题就好了</span><span style="color: #c27ba0; font-family: Arial, Helvetica, sans-serif;">。</span></div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0tag:blogger.com,1999:blog-5033839802507651775.post-35627228829375585662012-04-05T06:46:00.000+08:002012-04-05T06:46:14.390+08:00如何编写可维护的面向对象JavaScript代码<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="Section0">
<h1 style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="font-family: 'Times New Roman'; font-size: 14pt;">如何编写可维护的面向对象</span><span style="font-family: 'Times New Roman'; font-size: 14pt;">JavaScript<span style="font-family: 'Times New Roman';">代码</span></span><span style="font-family: 'Times New Roman'; font-size: 14pt;"><o:p></o:p></span></h1>
<div>
<span style="font-family: 'Times New Roman'; font-size: 14pt;"><span style="font-family: 'Times New Roman';"><br /></span></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 10.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt; text-align: right;">
<span style="font-size: x-small;"><span style="font-family: 宋体;">作者:</span><a href="http://msdn.microsoft.com/en-us/magazine/gg602402.aspx?utm_source=javascriptweekly&utm_medium=email#author"><span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: blue; font-family: Calibri; font-weight: bold;">Ara Pehlivanian</span></a><span style="font-family: Calibri;"> </span><span style="font-family: 宋体;"><o:p></o:p></span></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt; text-align: right;">
<span style="font-size: x-small;"><span style="font-family: 宋体;">发表时间:</span><span style="font-family: 宋体;">2011<span style="font-family: 宋体;">年</span><span style="font-family: 'Times New Roman';">2</span><span style="font-family: 宋体;">月</span><span style="font-family: 'Times New Roman';">1</span><span style="font-family: 宋体;">日</span></span></span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><br /></span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt; text-align: right;">
<span style="font-family: 宋体; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/magazine/gg602402.aspx?utm_source=javascriptweekly&utm_medium=email" target="_blank">原文地址</a></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt; text-align: right;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">能够写出可维护的面向对象</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">JavaScript<span style="font-family: 宋体;">代码不仅可以节约金钱,还能让你很受欢迎。不信?有可能你自己或者其他什么人有一天会回来重用你的代码。如果能尽量让这个经历不那么痛苦,就可以节省不少时间。地球人都知道,时间就是金钱。同样的,你也会因为帮某人省去了头疼的过程而获得他的偏爱。但是,在开始探索如何编写可维护的面向对象</span><span style="font-family: 'Times New Roman';">JavaScript</span><span style="font-family: 宋体;">代码之前,我们先来快速看看什么是面向对象。如果已经了解面向对象的概念了,就可以直接跳过下一节。</span></span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<h3 style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 'Times New Roman'; font-size: 12pt;">什么是面向对象?</span><span style="font-family: 'Times New Roman'; font-size: 12pt;"><o:p></o:p></span></h3>
<div>
<span style="font-family: 'Times New Roman'; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">面向对象编程主要通过代码代表现实世界中的实质对象。</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">要创建对象,首先需要写一个“类”来定义。</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"> 类几乎可以代表所有的东西:账户,员工,导航菜单,汽车,植物,广告,饮料,等等。而每次要创建对象的时候,就从类实例化一个对象。换句话说,就是创建类的实例做为对象。事实上,通常处理一个以上的同类事物时就会使用到对象。另外,只需要简单的函数式程序就可以做的很好。对象实质上是数据的容器。因此在一个</span><span style="font-family: '宋体'; font-size: 12.0000pt; font-style: italic; mso-spacerun: 'yes';">employee</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">对象中,你可能要储存员工号,姓名,入职日期,职称,工资,资历,等等。对象也包括处理数据的函数(也叫做“方法”)。方法被用作媒介来确保数据的完整性,以及在储存之前对数据进行转换。例如,方法可以接收任意格式的日期然后在储存之前将其转化成标准化格式。最后,类还可以继承其他的类。继承可以让你在不同类中重复使用相同代码。例如,银行账户和音像店账户都可以继承一个基本的账户类,里面包括个人信息,开户日期,分部信息,等等。然后每个都可以定义自己的交易或者借款处理等数据结构和方法。</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<h3 style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">警告:JavaScript面向对象是不一样的</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></h3>
<div>
<span style="font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">在上一节中,概述了经典的面向对象编程的基本知识。说经典是因为<span style="font-family: 'Times New Roman';">JavaScript</span><span style="font-family: 宋体;">并不遵循这些规则。相反地,</span><span style="font-family: 'Times New Roman';">JavaScript</span><span style="font-family: 宋体;">的类是写成函数的样子,而继承则是通过原型实现的。原型继承基本上意味着使用原型属性来实现对象的继承,而不是从类继承类。</span></span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<h3 style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;">对象的实例化</span><span style="font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></h3>
<div>
<span style="font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">以下是<span style="font-family: 'Times New Roman';">JavaScript</span><span style="font-family: 宋体;">中对象实例化的例子:</span></span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">// </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">定义</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">Employee<span style="font-family: 宋体;">类</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">2 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> Employee(num, fname, lname) </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">3 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">.getFullName = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> () </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">4 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">return</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> fname + </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">" "</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> + lname;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">5 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">6 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">7 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">8 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">// </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">实例化</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">Employee<span style="font-family: 宋体;">对象</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">9 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">var</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> john = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">new</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> Employee(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"4815162342"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"John"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"Doe"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">10 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">alert(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"The employee's full name is "</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> + john.getFullName());</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">在这里,有三个重点需要注意:</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">“</span><span style="font-family: 'Calibri'; font-size: 12.0000pt; mso-spacerun: 'yes';">class</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">”函数名的第一个字母要大写。这表明该函数的目的是被实例化而不是像一般函数一样被调用。</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">2 </span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">在实例化的时候使用了</span><span style="font-family: 'Calibri'; font-size: 12.0000pt; font-style: italic; mso-spacerun: 'yes';">new</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">操作符。如果省略掉</span><span style="font-family: Calibri; font-size: 16px; font-style: italic;">new</span><span style="font-family: Calibri; font-size: 16px;">而</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><span style="font-family: 宋体;">仅仅调用函数则会产生很多问题。</span></span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">3 </span><span style="font-family: 宋体; font-size: 16px;">因为</span><span style="font-family: Calibri; font-size: 12pt;">getFullName</span><span style="font-family: 宋体; font-size: 12pt;">指定给</span><span style="font-family: Calibri; font-size: 12pt;">this</span><span style="font-family: 宋体; font-size: 12pt;">操作符了,所以是公共可用的,但是</span><span style="font-family: Calibri; font-size: 12pt;">fname</span><span style="font-family: 宋体; font-size: 12pt;">和</span><span style="font-family: 宋体; font-size: 12pt;">l</span><span style="font-family: Calibri; font-size: 12pt;">name</span><span style="font-family: 宋体; font-size: 12pt;">则不是。由</span><span style="font-family: Calibri; font-size: 12pt;">Employee</span><span style="font-family: 宋体; font-size: 12pt;">函数产生的</span><a href="http://extjs.org.cn/node/400"><span class="15" style="color: blue; font-family: 宋体; font-size: 12pt;">闭包</span></a><span style="font-family: 宋体; font-size: 12pt;">给了</span><span style="font-family: Calibri; font-size: 12pt;">getFullName</span><span style="font-family: 宋体; font-size: 12pt;">到</span><span style="font-family: Calibri; font-size: 12pt;">fname</span><span style="font-family: 宋体; font-size: 12pt;">和</span><span style="font-family: Calibri; font-size: 12pt;">lname</span><span style="font-family: 宋体; font-size: 12pt;">的</span><span style="font-family: 宋体; font-size: 12pt;">入口,但同时对于其他类仍然是私有的。</span></div>
<div class="p0" style="margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';">原型继承</span><span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">下面是</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">JavaScript<span style="font-family: 宋体;">中原型继承的例子:</span></span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">// </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">定义</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">Human<span style="font-family: 宋体;">类</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">2 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> Human() </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">3 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">.setName = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> (fname, lname) </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">4 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">.fname = fname;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">5 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">.lname = lname;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">6 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">7 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">.getFullName = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> () </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">8 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">return</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">.fname + </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">" "</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> + </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">.lname;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">9 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">10 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">11 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">12 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">// </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">定义</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">Employee<span style="font-family: 宋体;">类</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">13 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> Employee(num) </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">14 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">.getNum = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> () </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">15 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">return</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> num;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">16 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">17 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">18 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">//</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">让</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">Employee<span style="font-family: 宋体;">继承</span><span style="font-family: Calibri;">Human</span><span style="font-family: 宋体;">类</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">19 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">Employee.prototype = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">new</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> Human();</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">20 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">21 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">// </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">实例化</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">Employee<span style="font-family: 宋体;">对象</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">22 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">var</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> john = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">new</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> Employee(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"4815162342"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">23 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> john.setName(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"John"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"Doe"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">24 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">alert(john.getFullName() + </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"'s employee number is "</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> + john.getNum());</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">这一次,创建的</span><span style="font-family: Calibri; font-size: 16px;">Human</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><span style="font-family: 宋体;">类包含人类的一切共有属性——我也将</span></span><span style="font-family: 'Calibri'; font-size: 12.0000pt; mso-spacerun: 'yes';">fname</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">和</span><span style="font-family: 'Calibri'; font-size: 12.0000pt; mso-spacerun: 'yes';">lname</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">放进去了,因为不仅仅是员工才有名字,所有人都有名字。然后将</span><span style="font-family: 'Calibri'; font-size: 12.0000pt; mso-spacerun: 'yes';">Human</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">对象赋值给它的</span><span style="font-family: 'Calibri'; font-size: 12.0000pt; mso-spacerun: 'yes';">prototype</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">属性。</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><b>通过继承实现代码重用</b></span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
</div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">在前面的例子中,原来的</span><span style="font-family: Calibri; font-size: 12pt;">Employee</span><span style="font-family: 宋体; font-size: 12pt;">类被分解成两个部分。所有的人类通用属性被移到了</span><span style="font-family: Calibri; font-size: 16px;">Human</span><span style="font-family: 宋体; font-size: 12pt;">类中,然后让</span><span style="font-family: Calibri; font-size: 12pt;">Employee</span><span style="font-family: 宋体; font-size: 12pt;">继承</span><span style="font-family: Calibri; font-size: 16px;">Human</span><span style="font-family: 宋体; font-size: 12pt;">。这样的话,</span><span style="font-family: Calibri; font-size: 16px;">Human</span><span style="font-family: 宋体; font-size: 12pt;">里面的属性就可以被其他的对象使用,例如</span><span style="font-family: Calibri; font-size: 12pt;">Student</span><span style="font-family: 宋体; font-size: 12pt;">(学生),</span><span style="font-family: Calibri; font-size: 12pt;">Client</span><span style="font-family: 宋体; font-size: 12pt;">(顾客),</span><span style="font-family: Calibri; font-size: 12pt;">Citizen</span><span style="font-family: 宋体; font-size: 12pt;">(公民),</span><span style="font-family: Calibri; font-size: 12pt;">Visitor</span><span style="font-family: 宋体; font-size: 12pt;">(游客),等等。现在你可能注意到了,这是分割和重用代码很好的方式。处理</span><span style="font-family: Calibri; font-size: 16px;">Human</span><span style="font-family: 宋体; font-size: 12pt;">对象时,只需要继承</span><span style="font-family: Calibri; font-size: 16px;">Human</span><span style="font-family: 宋体; font-size: 12pt;">来使用已存在的属性,而不需要对每种不同的对象都</span><span style="font-family: 宋体; font-size: 16px;">重新</span><span style="font-family: 宋体; font-size: 12pt;">一一创建。除此以外,如果要添加一个“中间名字”的属性,只需要加一次,那些继承了</span>
<span style="font-family: Calibri; font-size: 16px;">Human</span> <span style="font-family: 宋体; font-size: 12pt;">类的就可以立马使用了。反而言之,如果我们只是想要给一个对象加“中间名字”的属性,我们就直接加在那个对象里面,而不需要在</span>
<span style="font-family: Calibri; font-size: 16px;">Human</span> <span style="font-family: 宋体; font-size: 12pt;">类里面加。</span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
</div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';">Public<span style="font-family: 宋体;">(公有的)和</span><span style="font-family: 'Times New Roman';">Private</span><span style="font-family: 宋体;">(私有的)</span></span><span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">接下来的主题,我想谈谈类中的公有和私有变量。根据对象中处理数据的方式不同,数据会被处理为私有的或者公有的。私有属性并不一定意味着其他人无法访问。可能只是某个方法需要用到。</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';">只读</span><span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">有时,你只是想要在创建对象的时候能有一个值。一旦创建,就不想要其他人再改变这个值。为了做到这点,可以创建一个私有变量,在实例化的时候给它赋值。</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> Animal(type) </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">2 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">var</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> data = [];</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">3 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> data[</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">'type'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">] = type;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">4 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">.getType = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> () </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">5 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">return</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> data[</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">'type'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">];</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">6 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">7 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">8 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">9 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">var</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> fluffy = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">new</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> Animal(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">'dog'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">10 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">fluffy.getType(); </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">// </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">返回</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;"> 'dog'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 'Times New Roman';"><span style="font-size: 14px;"><br /></span></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
</div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">在这个例子中,</span><span style="font-family: 'Calibri'; font-size: 12.0000pt; mso-spacerun: 'yes';">Animal</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">类中</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">创建了一个本地数组</span><span style="font-family: 'Calibri'; font-size: 12.0000pt; mso-spacerun: 'yes';">data</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">。当</span>
<span style="font-family: Calibri; font-size: 16px;">Animal</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><span style="font-family: 宋体;">对象被实例化时,传递了一个</span><span style="font-family: Calibri;">type</span><span style="font-family: 宋体;">的值并将该值放置在</span><span style="font-family: Calibri;">data</span><span style="font-family: 宋体;">数组中。因为它是私有的,所以该值无法被覆盖(</span><span style="font-family: Calibri;">Animal</span><span style="font-family: 宋体;">函数定义了它的范围)。一旦对象被实例化了,读取</span><span style="font-family: Calibri;">type</span><span style="font-family: 宋体;">值的唯一方式是调用</span><span style="font-family: Calibri;">getType</span><span style="font-family: 宋体;">方法。因为</span><span style="font-family: Calibri;">getType</span><span style="font-family: 宋体;">是在</span><span style="font-family: Calibri;">Animal</span><span style="font-family: 宋体;">中定义的,因此</span></span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">凭借</span><span style="font-family: Calibri; font-size: 16px;">Animal</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><span style="font-family: 宋体;">产生的闭包,</span></span><span style="font-family: 'Calibri'; font-size: 12.0000pt; mso-spacerun: 'yes';">getType</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">可以进到</span><span style="font-family: 'Calibri'; font-size: 12.0000pt; mso-spacerun: 'yes';">data</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">中。这样的话,虽可以读到对象的类型却无法改变。</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';">有一点非常重要</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">,就是当对象被继承时,“只读”技术就无法运用。在执行</span><span style="font-family: 宋体; font-size: 16px;">继承</span><span style="font-family: 宋体; font-size: 12pt;">后,每个实例化的对象都会共享那些只读变量并覆盖其值。最简单的解决办法是将类中的只读变量转换成公共变量。但是你必须保持它们是私有的,你可以使用</span><span style="font-family: 'Times New Roman'; font-size: 12pt;">Philippe</span><span style="font-family: 宋体; font-size: 12pt;">在评论中提到的技术。</span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" dir="rtl" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; margin-bottom: 0pt; margin-right: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt; text-align: left;">
</div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: 'Calibri'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';">Public</span><span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';">(公有)</span><span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; font-weight: bold; mso-spacerun: 'yes';"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">当然也有些时候你想要任意读写某个属性的值。要实现这一点,需要使用</span><span style="font-family: 'Calibri'; font-size: 12.0000pt; mso-spacerun: 'yes';">this</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';">操作符。</span><span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 12.0000pt; mso-spacerun: 'yes';"><br /></span></div>
<div class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: '宋体'; font-size: 10.5000pt; mso-spacerun: 'yes';"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> Animal() </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">2 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">.mood = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">''</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">3 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">4 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">5 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">var</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> fluffy = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">new</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> Animal();</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">6 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">fluffy.mood = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">'happy'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">7 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;">fluffy.mood; </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">// </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: 宋体; font-size: 12pt;">返回</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;"> 'happy'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt;">这次</span><span style="font-family: Calibri; font-size: 16px;">Animal</span><span style="color: #333333; font-family: 宋体; font-size: 12pt; line-height: 12pt;">类公开了一个叫</span><span style="color: #333333; font-family: Calibri; font-size: 12pt; line-height: 12pt;">mood</span><span style="color: #333333; font-family: 宋体; font-size: 12pt; line-height: 12pt;">的属性,可以被随意读写。同样地,你还可以将函数指定给公有的属性,例如之前例子中的</span><span style="color: #333333; font-family: Calibri; font-size: 12pt; line-height: 12pt;">getType</span><span style="color: #333333; font-family: 宋体; font-size: 12pt; line-height: 12pt;">函数。只是要注意不要给</span><span style="color: #333333; font-family: Calibri; font-size: 12pt; line-height: 12pt;">getType</span><span style="color: #333333; font-family: 宋体; font-size: 12pt; line-height: 12pt;">赋值,不然的话你会毁了它的。</span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt;"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">完全私有</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;"><br /></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt;">最后,</span><span style="color: #333333; font-family: 宋体; font-size: 16px;">可能</span><span style="color: #333333; font-family: 宋体; font-size: 12pt; line-height: 12pt;">你发现你需要一个完全私有化的本地变量。这样的话,你可以使用与第一个例子中一样的模式而不需要创建公有方法。</span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 16.5pt; margin-bottom: 2.25pt; margin-top: 2.25pt; padding-bottom: 0pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #3a3e43; font-family: 'Segoe UI Semibold'; font-size: 13.5pt; font-weight: bold;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> Animal() </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">2 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">var</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> secret = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"You'll never know!"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">3 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">4 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Symbol; font-size: 9.5pt;">5 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">var</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> fluffy = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">new</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"> Animal();</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: Calibri; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">写灵活的</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;">API</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt; font-weight: bold;"><br /></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt;">既然我们已经谈到类的创建,为了保持与产品需求变化同步,我们需要保持代码不过时。如果你已经做过某些项目或者是长期维护过某个产品,那么你就应该知道需求是变化的。这是一个不争的事实。如果你不是这么想的话,那么你的代码在还没有写之前就将注定荒废。可能你突然就需要将选项卡中的内容弄成动画形式,或是需要通过<span style="font-family: Calibri;">Ajax</span><span style="font-family: 宋体;">调用来获取数据。尽管准确预测未来是不大可能,但是却完全可以将代码写灵活以备将来不时之需。</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt;"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #333333; font-family: 宋体; font-size: 12pt;"></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: bold;">Saner<span style="font-family: 宋体;">参数列表</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: bold;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: bold;"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">在设计参数列表的时候</span><span style="font-size: 12pt; line-height: 12pt;">可以</span><span style="font-size: 12pt; line-height: 12pt;">让代码有前瞻性。参数列表是让别人实现你代码的主要接触点,如果没有设计好的话,是会很有问题的。你应该避免下面这样的参数列表:</span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> Person(employeeId, fname, lname, tel, fax, email, email2, dob) </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">2 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">;<br /></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">这个类十分脆弱。如果在你发布代码后想要添加一个中间名参数,因为顺序问题,你不得不在列表的最后往上加。这让工作变得尴尬。如果你没有为每个参数赋值的话,将会十分困难。例如:</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">var</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> ara = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">new</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> Person(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt;">1234</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"Ara"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"Pehlivanian"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"514-555-1234"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">, null, null, null, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"1976-05-17"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">操作参数列表更整洁也更灵活的方式是使用这个模式:</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> Person(employeeId, data) </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">2 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">有第一个参数因为这是必需的。剩下的就混在对象的里面,这样才可以灵活运用。</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">var</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> ara = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">new</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> Person(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt;">1234</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">2 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> fname: </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"Ara"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">,</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">3 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> lname: </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"Pehlivanian"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">,</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">4 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> tel: </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"514-555-1234"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">,</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">5 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> dob: </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"1976-05-17"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">6 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">这个模式的漂亮之处在于它即方便阅读又高度灵活。注意到</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">fax, email<span style="font-family: 宋体;">和</span><span style="font-family: Calibri;">email2</span><span style="font-family: 宋体;">完全被忽略了。不仅如此,对象是没有特定顺序的,因此哪里方便就在哪里添加一个中间名参数是非常容易的:</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">var</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> ara = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">new</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> Person(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt;">1234</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">2 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> fname: </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"Ara"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">,</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">3 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> mname: </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"Chris"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">,</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">4 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> lname: </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"Pehlivanian"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">,</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">5 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> tel: </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"514-555-1234"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">,</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">6 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> dob: </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"1976-05-17"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">7 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); line-height: 12.0000pt; margin-bottom: 9.0000pt; margin-top: 0pt; padding: 0pt 0pt 0pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">类里面的代码不重要,因为里面的值可以通过索引来访问:</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> Person(employeeId, data) </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">2 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">.fname = data[</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">'fname'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">];</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">3 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">如果</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">data['fname'] </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">返回一个值,那么他就被设定好</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><span style="font-family: 宋体;">了。否则的话,没被设定好,也没有什么损失。</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: bold;">让代码可嵌入</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: bold;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: bold;"><br /></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">随着时间流逝,产品需求可能对你类的行为有更多的要求。而该行为却与你类的核心功能没有半毛钱关系。也有可能是类的唯一一种实现,好比在一个选项卡的面板获取另一个选项卡的外部数据时,将这个选项卡面板中的内容变灰。你可能想把这些功能放在类的里面,但是它们不属于那里。选项卡条的责任在于管理选项卡。动画和获取数据是完全不同的两码事,也必须与选项卡条的代码分开。唯一一个让你的选项卡条不过时而又将那些额外的功能排除在外的方法是,允许将行为嵌入到代码当中。换句话说,通过创建事件,让它们在你的代码中与关键时刻挂钩,例如<span style="font-family: Calibri;">onTabChange, afterTabChange, onShowPanel, afterShowPanel</span><span style="font-family: 宋体;">等等。那样的话,他们可以轻易地与你的</span><span style="font-family: Calibri;">onShowPanel</span><span style="font-family: 宋体;">事件挂钩,写一个将面板内容变灰的处理器,这样就皆大欢喜了。</span><span style="font-family: Calibri;">JavaScript</span><span style="font-family: 宋体;">库让你可以足够容易地做到这一点,但是你自己写也不那么难。下面是使用</span><span style="font-family: Calibri;">YUI 3</span><span style="font-family: 宋体;">的一个例子。</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><script type=</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"text/javascript"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> src=</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"http://yui.yahooapis.com/combo?3.2.0/build/yui/yui-min.js"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">></script></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">2 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><script type=</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">"text/javascript"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">3 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> YUI().use(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">'event'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> (Y) </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">4 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">5 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> TabStrip() </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">6 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">.showPanel = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> () </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">7 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">.fire(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">'onShowPanel'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">8 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">9 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">// </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-size: 12pt;">展现面板的代码</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">10 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">11 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">this</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">.fire(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">'afterShowPanel'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">12 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">13 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">;</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">14 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">15 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">// </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-size: 12pt;">让</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">TabStrip</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-size: 12pt;">有能力激发常用事件</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">16 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> Y.augment(TabStrip, Y.EventTarget);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">17 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">18 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: navy; font-family: Calibri; font-size: 12pt; font-weight: bold;">var</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> ts = </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">new</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> TabStrip();</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">19 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">20 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">// </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-size: 12pt;">给</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-size: 12pt;">TabStrip<span style="font-family: 宋体;">的这个实例创建常用时间处理器</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">21 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> ts.on(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">'onShowPanel'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> () </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">22 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">//</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-size: 12pt;">在展示面板之前要做的事</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">23 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">24 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> ts.on(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">'onShowPanel'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> () </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">25 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">//</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-size: 12pt;">在展示面板之前要做的其他事</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">26 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">27 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> ts.on(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: teal; font-family: Calibri; font-size: 12pt;">'afterShowPanel'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: royalblue; font-family: Calibri; font-size: 12pt; font-weight: bold;">function</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> () </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">{</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">28 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Calibri; font-size: 12pt;">//</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: green; font-size: 12pt;">在展示面板之后要做的事</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">29 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">30 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">31 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> ts.showPanel();</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">32 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Calibri; font-size: 12pt; font-weight: bold;">}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;">);</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Symbol; font-size: 9.5pt;">33 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"></script></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><br /></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Calibri; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">这个例子有一个简单的</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">
<span style="font-family: Calibri;">TabStrip</span> <span style="font-family: 宋体;">类,其中有个</span><span style="font-family: Calibri;">showPanel</span><span style="font-family: 宋体;">方法。这个方法激发两个事件,</span><span style="font-family: Calibri;">onShowPanel</span><span style="font-family: 宋体;">和</span><span style="font-family: Calibri;">afterShowPanel</span><span style="font-family: 宋体;">。这个能力是通过用</span><span style="font-family: Calibri;">Y.EventTarget</span><span style="font-family: 宋体;">扩大类来实现的。一旦做成,我们就实例化了一个</span><span style="font-family: Calibri;">TabStrip</span><span style="font-family: 宋体;">对象,并将一堆处理器都分配给它。这是用来处理实例的唯一行为而又能避免混乱当前类的常用代码。</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><span style="font-family: 宋体;"><br /></span></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: bold;">总结</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: bold;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: bold;"><br /></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;">如果你打算重用代码,无论是在同一网页,同一网站还是跨项目操作,考虑一下在类里面将其打包和组织起来。面向对象<span style="font-family: Calibri;">JavaScript</span><span style="font-family: 宋体;">很自然地帮助实现更好的代码组织以及代码重用。除此以外,有点远见的你可以确保代码具有足够的灵活性,可以在你写完代码后持续使用很长时间。编写可重用的不过时</span><span style="font-family: Calibri;">JavaScript</span><span style="font-family: 宋体;">代码可以节省你,你的团队还有你公司的时间和金钱。这绝对能让你大受欢迎。</span></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><o:p></o:p></span></div>
<br />
<div class="p0" style="background: rgb(255,255,255); border-bottom: none; line-height: 12.0000pt; margin-bottom: 0pt; margin-top: 0pt; mso-border-bottom-alt: none; padding: 0pt 0pt 3pt 0pt; text-autospace: ideograph-other;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 12pt;"><span style="font-family: 宋体;"><br /></span></span></div>
<br />
<div class="p0" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; line-height: 12pt; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 3pt; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt; text-align: center;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; font-family: 宋体; font-size: 12pt;"><span style="color: #999999; font-family: 宋体;">转载请注明出处</span></span></div>
<br />
<br />
<br />
</div>
</div>TESThttp://www.blogger.com/profile/17943044090448623682noreply@blogger.com0