锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日欧美一区二区,国产1区2区3区在线,久久中文字幕一区二区三区http://www.aygfsteel.com/liuyf8688/category/43980.htmlzh-cnThu, 28 Jan 2016 15:35:03 GMTThu, 28 Jan 2016 15:35:03 GMT60JS涓渶綆鍗曠殑HashMap瀹炵幇http://www.aygfsteel.com/liuyf8688/articles/429236.htmlliuyf8688liuyf8688Wed, 27 Jan 2016 11:00:00 GMThttp://www.aygfsteel.com/liuyf8688/articles/429236.htmlhttp://www.aygfsteel.com/liuyf8688/comments/429236.htmlhttp://www.aygfsteel.com/liuyf8688/articles/429236.html#Feedback0http://www.aygfsteel.com/liuyf8688/comments/commentRss/429236.htmlhttp://www.aygfsteel.com/liuyf8688/services/trackbacks/429236.html<script>
var hashMap = { 407624 : "12--",
407625 : "22--",
407625 : "22--",
407626 : "32--",
407627 : "42--",
407628 : "52--",
407627 : "42--",
407627 : "42--",
407627 : "42--",
407627 : "42--",
407627 : "42--",
407627 : "42--",
407627 : "42--",
407627 : "42--",
407627 : "42--",
407627 : "42--"
};
// alert(hashmap[407624]);
// alert(hashmap[407625]);
for (var key in hashmap) {
console.log(hashmap[key]);
}
</script>


liuyf8688 2016-01-27 19:00 鍙戣〃璇勮
]]>
Json String瑙f瀽http://www.aygfsteel.com/liuyf8688/articles/426563.htmlliuyf8688liuyf8688Mon, 03 Aug 2015 10:33:00 GMThttp://www.aygfsteel.com/liuyf8688/articles/426563.htmlhttp://www.aygfsteel.com/liuyf8688/comments/426563.htmlhttp://www.aygfsteel.com/liuyf8688/articles/426563.html#Feedback0http://www.aygfsteel.com/liuyf8688/comments/commentRss/426563.htmlhttp://www.aygfsteel.com/liuyf8688/services/trackbacks/426563.html
1.鍚庡彴鍙戝竷API錛岃繑鍥炵粨鏋滀負JSON銆?br />2.鍓嶇閲囩敤AJAX寮傛璇鋒眰銆?br />
閫氬父鎴戜滑浼氱鍒板悗鍙癆PI榪斿洖鍗曚釜榪斿洖鍊鹼紝綾誨瀷涓簊tring鐨勬儏鍐點?br />浣嗘槸鎴戜滑鏌ョ湅嫻忚鍣ㄦ帶鍒跺彴鎴栭氳繃alter鐩存帴鎵撳嵃緇撴灉鏃訛紝閫氬父璇ュ兼槸琚寘瑁瑰湪鍙屽紩鍙蜂腑銆?br />渚嬪錛?http://www.baidu.com"

錛濓紳錛濓紳錛濓紳錛濓紳錛濓紳錛濓紳錛濆壊鍓插壊鍓插壊鍓插壊鍓?==================

鎴戜滑寰堝洶鎯戯紝
鍓嶇璇達細鍚庣搴旇榪斿洖string錛屼笉甯﹀弻寮曞彿銆?br />鍚庣璇達細鎴戜滑榪斿洖鐨勬槸鏍囧噯JSON鏍煎紡錛屼笉鑳藉幓鎺夊弻寮曞彿銆?br />鍓嶇璇達細鏍囧噯JSON鏍煎紡涓轟粈涔堜笉甯﹀ぇ鎷彿錛坽}錛夈?br />
濡傛灉鎴戜滑緇嗗績鐨勫幓鏌ヨJSON瀹樻柟绔欑偣(http://json.org)鐨勮瘽錛屾垜浠細鍙戠幇JSON鎷ユ湁涓涓崟鐙殑綾誨瀷涓篠tring銆?br />瀹氫箟濡備笅錛?br />
string is a sequence of zero or more Unicode characters, wrapped in double quotes, using backslash escapes. A character is represented as a single character string. A string is very much like a C or Java string

String鏄敱0涓垨澶氫釜Unicode瀛楃緇勬垚鐨勫簭鍒楋紝琚寘瑁瑰湪鍙屽紩鍙蜂腑銆傚彲浠ヤ嬌鐢ㄦ枩鏉狅紙\錛夋潵閫冮稿叧閿瓧鎴栫壒孌婂瓧絎︺傚瓧絎﹁〃紺哄崟涓殑瀛楃涓層?br />瀛楃涓蹭笌C鎴朖AVA涓殑瀛楃涓查潪甯哥浉浼箋?br />
鐜板湪鎴戜滑鏄庣櫧浜嗭紝鍘熸潵榪欐槸涓縐嶆爣鍑嗙殑JSON鏍煎紡銆?br />閭d箞鎴戜滑鎬庝箞瑙f瀽浠栧憿銆?br />
鍏跺疄闈炲父綆鍗曪紝鎴戜滑鎶婁粬褰撲綔鏅氱殑JSON鏉ヨВ鏋愬氨鍙互浜嗐?br />
<script>
    var jsontext = '"http://www.baidu.com"';
    // 鍙樿韓
    var url = JSON.parse(jsontext);
    alert(url);
    // 鍐嶅彉韜?/span>
    var json = JSON.stringify(url);
    alert(json);    
</script>


liuyf8688 2015-08-03 18:33 鍙戣〃璇勮
]]>
jQuery鎻掍歡寮鍙戞敞鎰忎簨欏?/title><link>http://www.aygfsteel.com/liuyf8688/articles/354772.html</link><dc:creator>liuyf8688</dc:creator><author>liuyf8688</author><pubDate>Thu, 21 Jul 2011 04:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/liuyf8688/articles/354772.html</guid><wfw:comment>http://www.aygfsteel.com/liuyf8688/comments/354772.html</wfw:comment><comments>http://www.aygfsteel.com/liuyf8688/articles/354772.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liuyf8688/comments/commentRss/354772.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liuyf8688/services/trackbacks/354772.html</trackback:ping><description><![CDATA[<span id="wmqeeuq" class="Apple-style-span" style="font-family: 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 19px; "><ul style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.3em; margin-right: 0px; margin-bottom: 0px; margin-left: 1.5em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; list-style-type: square; list-style-position: initial; list-style-image: url(http://docs.jquery.com/skins/monobook/bullet.gif); line-height: 1.5em; background-position: initial initial; background-repeat: initial initial; "><li style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; font-weight: normal; background-position: initial initial !important; background-repeat: initial initial !important; ">Always wrap your plugin in <code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f9f9f9; background-position: initial initial; background-repeat: initial initial; ">(function( $ ){ // plugin goes here })( jQuery );</code></li><li style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; font-weight: normal; background-position: initial initial !important; background-repeat: initial initial !important; ">Don't redundantly wrap the <code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f9f9f9; background-position: initial initial; background-repeat: initial initial; ">this</code> keyword in the immediate scope of your plugin's function</li><li style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; font-weight: normal; background-position: initial initial !important; background-repeat: initial initial !important; ">Unless you're returning an intrinsic value from your plugin, always have your plugin's function return the <code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f9f9f9; background-position: initial initial; background-repeat: initial initial; ">this</code> keyword to maintain chainability.</li><li style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; font-weight: normal; background-position: initial initial !important; background-repeat: initial initial !important; ">Rather than requiring a lengthy amount of arguments, pass your plugin settings in an object literal that can be extended over the plugin's defaults.</li><li style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; font-weight: normal; background-position: initial initial !important; background-repeat: initial initial !important; ">Don't clutter the <code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f9f9f9; background-position: initial initial; background-repeat: initial initial; ">jQuery.fn</code> object with more than one namespace per plugin.</li><li style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; font-weight: normal; background-position: initial initial !important; background-repeat: initial initial !important; ">Always namespace your methods, events and data.</li></ul></span><img src ="http://www.aygfsteel.com/liuyf8688/aggbug/354772.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liuyf8688/" target="_blank">liuyf8688</a> 2011-07-21 12:33 <a href="http://www.aygfsteel.com/liuyf8688/articles/354772.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>楠岃瘉杈撳叆鐨勬枃鏈暱搴︼紝鍖哄垎鍏ㄨ鍜屽崐瑙?/title><link>http://www.aygfsteel.com/liuyf8688/articles/314794.html</link><dc:creator>liuyf8688</dc:creator><author>liuyf8688</author><pubDate>Mon, 08 Mar 2010 03:30:00 GMT</pubDate><guid>http://www.aygfsteel.com/liuyf8688/articles/314794.html</guid><wfw:comment>http://www.aygfsteel.com/liuyf8688/comments/314794.html</wfw:comment><comments>http://www.aygfsteel.com/liuyf8688/articles/314794.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liuyf8688/comments/commentRss/314794.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liuyf8688/services/trackbacks/314794.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008080; "> 1</span> <span style="color: #000000; "><</span><span style="color: #000000; ">script type</span><span style="color: #000000; ">=</span><span style="color: #000000; ">"</span><span style="color: #000000; ">text/javascript</span><span style="color: #000000; ">"</span><span style="color: #000000; ">></span><span style="color: #000000; "><br /> </span><span style="color: #008080; "> 2</span> <span style="color: #008000; ">/*</span><span style="color: #008000; ">*<br /> </span><span style="color: #008080; "> 3</span> <span style="color: #008000; ">* 瀛楃涓叉眰闀垮害(鍏ㄨ)<br /> </span><span style="color: #008080; "> 4</span> <span style="color: #008000; ">*/</span><span style="color: #000000; "><br /> </span><span style="color: #008080; "> 5</span> <span style="color: #000000; ">String.prototype._getLength </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">function</span><span style="color: #000000; ">() {<br /> </span><span style="color: #008080; "> 6</span> <span style="color: #000000; ">    </span><span style="color: #0000FF; ">var</span><span style="color: #000000; "> str </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">this</span><span style="color: #000000; ">;<br /> </span><span style="color: #008080; "> 7</span> <span style="color: #000000; ">    </span><span style="color: #0000FF; ">var</span><span style="color: #000000; "> len </span><span style="color: #000000; ">=</span><span style="color: #000000; "> str.length;<br /> </span><span style="color: #008080; "> 8</span> <span style="color: #000000; ">    </span><span style="color: #0000FF; ">var</span><span style="color: #000000; "> reLen </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; ">;<br /> </span><span style="color: #008080; "> 9</span> <span style="color: #000000; ">    </span><span style="color: #0000FF; ">for</span><span style="color: #000000; "> (</span><span style="color: #0000FF; ">var</span><span style="color: #000000; "> i </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; ">; i </span><span style="color: #000000; "><</span><span style="color: #000000; "> len; i</span><span style="color: #000000; ">++</span><span style="color: #000000; ">) {       <br /> </span><span style="color: #008080; ">10</span> <span style="color: #000000; ">        </span><span style="color: #0000FF; ">if</span><span style="color: #000000; "> (str.charCodeAt(i) </span><span style="color: #000000; "><</span><span style="color: #000000; "> </span><span style="color: #000000; ">27</span><span style="color: #000000; "> </span><span style="color: #000000; ">||</span><span style="color: #000000; "> str.charCodeAt(i) </span><span style="color: #000000; ">></span><span style="color: #000000; "> </span><span style="color: #000000; ">126</span><span style="color: #000000; ">) {<br /> </span><span style="color: #008080; ">11</span> <span style="color: #000000; ">            </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 鍏ㄨ   </span><span style="color: #008000; "><br /> </span><span style="color: #008080; ">12</span> <span style="color: #000000; ">            reLen </span><span style="color: #000000; ">+=</span><span style="color: #000000; "> </span><span style="color: #000000; ">2</span><span style="color: #000000; ">;<br /> </span><span style="color: #008080; ">13</span> <span style="color: #000000; ">        } </span><span style="color: #0000FF; ">else</span><span style="color: #000000; "> {<br /> </span><span style="color: #008080; ">14</span> <span style="color: #000000; ">            reLen</span><span style="color: #000000; ">++</span><span style="color: #000000; ">;<br /> </span><span style="color: #008080; ">15</span> <span style="color: #000000; ">        }<br /> </span><span style="color: #008080; ">16</span> <span style="color: #000000; ">    }<br /> </span><span style="color: #008080; ">17</span> <span style="color: #000000; ">    </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> reLen;   <br /> </span><span style="color: #008080; ">18</span> <span style="color: #000000; ">}<br /> </span><span style="color: #008080; ">19</span> <span style="color: #0000FF; ">function</span><span style="color: #000000; "> test(){<br /> </span><span style="color: #008080; ">20</span> <span style="color: #000000; ">    alert(document.getElementById(</span><span style="color: #000000; ">"</span><span style="color: #000000; ">inputDemo</span><span style="color: #000000; ">"</span><span style="color: #000000; ">).value._getLength());<br /> </span><span style="color: #008080; ">21</span> <span style="color: #000000; ">}<br /> </span><span style="color: #008080; ">22</span> <span style="color: #000000; "></</span><span style="color: #000000; ">script</span><span style="color: #000000; ">></span><span style="color: #000000; "><br /> </span><span style="color: #008080; ">23</span> <span style="color: #000000; "><br /> </span><span style="color: #008080; ">24</span> <span style="color: #000000; "><</span><span style="color: #000000; ">input type</span><span style="color: #000000; ">=</span><span style="color: #000000; ">"</span><span style="color: #000000; ">text</span><span style="color: #000000; ">"</span><span style="color: #000000; "> id</span><span style="color: #000000; ">=</span><span style="color: #000000; ">"</span><span style="color: #000000; ">inputDemo</span><span style="color: #000000; ">"</span><span style="color: #000000; "> </span><span style="color: #000000; ">/></span><span style="color: #000000; "><br /> </span><span style="color: #008080; ">25</span> <span style="color: #000000; "><</span><span style="color: #000000; ">input type</span><span style="color: #000000; ">=</span><span style="color: #000000; ">"</span><span style="color: #000000; ">button</span><span style="color: #000000; ">"</span><span style="color: #000000; "> value</span><span style="color: #000000; ">=</span><span style="color: #000000; ">"</span><span style="color: #000000; ">click me!</span><span style="color: #000000; ">"</span><span style="color: #000000; "> onclick</span><span style="color: #000000; ">=</span><span style="color: #000000; ">"</span><span style="color: #000000; ">test()</span><span style="color: #000000; ">"</span><span style="color: #000000; ">/></span></div> <img src ="http://www.aygfsteel.com/liuyf8688/aggbug/314794.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liuyf8688/" target="_blank">liuyf8688</a> 2010-03-08 11:30 <a href="http://www.aygfsteel.com/liuyf8688/articles/314794.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>js涓疄鐜皌rim鏂規硶http://www.aygfsteel.com/liuyf8688/articles/313446.htmlliuyf8688liuyf8688Sat, 20 Feb 2010 05:47:00 GMThttp://www.aygfsteel.com/liuyf8688/articles/313446.htmlhttp://www.aygfsteel.com/liuyf8688/comments/313446.htmlhttp://www.aygfsteel.com/liuyf8688/articles/313446.html#Feedback0http://www.aygfsteel.com/liuyf8688/comments/commentRss/313446.htmlhttp://www.aygfsteel.com/liuyf8688/services/trackbacks/313446.html 1     String.prototype.Trim = function(){
 2         return this.replace(/(^\s*)|(\s*$)/g, "");
 3     }
 4 
 5     String.prototype.LTrim = function(){
 6         return this.replace(/(^\s*)/g, "");
 7     }
 8     String.prototype.RTrim = function(){
 9         return this.replace(/(\s*$)/g, ""); 
10 
11     } 

liuyf8688 2010-02-20 13:47 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 会昌县| 大城县| 潜山县| 汤原县| 都昌县| 邢台县| 屯昌县| 武邑县| 如皋市| 无棣县| 惠水县| 沁水县| 大田县| 鸡东县| 鄄城县| 南雄市| 宁远县| 西平县| 泸州市| 田林县| 扶沟县| 兴国县| 红桥区| 兴仁县| 太和县| 丰宁| 东方市| 桓台县| 大化| 百色市| 沙河市| 阜南县| 雷山县| 应用必备| 武定县| 天祝| 常熟市| 宁国市| 竹溪县| 治县。| 江安县|