成人无码视频,亚洲精品久久久久av无码,午夜精品久久久久久毛片,亚洲 中文字幕 日韩 无码

資訊專欄INFORMATION COLUMN

前端常用屬性/方法/命令積累

xcold / 2503人閱讀

摘要:定義表格中的表注內(nèi)容腳注樣式節(jié)標(biāo)簽描述屬性定義文檔的樣式信息。原始值是由從對(duì)象下來(lái)的所有對(duì)象繼承的。方法通常由在后臺(tái)自動(dòng)進(jìn)行調(diào)用,而不是顯式地處于代碼中。

HTML常用標(biāo)簽

其實(shí)在w3school上都有詳細(xì)的總結(jié)和描述,寫在這里是為了理清自己的思路,整理比較常用的標(biāo)簽。
原地址:http://www.w3school.com.cn/ta...




   


   //tag

基礎(chǔ)標(biāo)簽
標(biāo)簽 描述
定義文檔類型。
定義 HTML 文檔。
</td> <td>定義文檔的標(biāo)題。</td> </tr> <tr> <td><body></td> <td>定義文檔的主體。</td> </tr> <tr> <td><h1> to <h6></td> <td>定義 HTML 標(biāo)題,塊級(jí)元素。</td> </tr> <tr> <td>p</td> <td>定義段落,塊級(jí)元素。</td> </tr> <tr> <td>br</td> <td>定義簡(jiǎn)單的折行。</td> </tr> <tr> <td>hr</td> <td>定義水平線。</td> </tr> <tr> <td><!--...--></td> <td>定義注釋。</td> </tr> </tbody> </table> <b>格式標(biāo)簽</b> <table> <thead><tr> <th>標(biāo)簽</th> <th>描述</th> </tr></thead> <tbody> <tr> <td>b</td> <td>文本加粗</td> </tr> <tr> <td>strong</td> <td>語(yǔ)義化,文本加粗</td> </tr> <tr> <td>i</td> <td>文本傾斜</td> </tr> <tr> <td>em</td> <td>語(yǔ)義化,文本傾斜</td> </tr> <tr> <td>s</td> <td>文本添加刪除線(不贊成)</td> </tr> <tr> <td>del</td> <td>文本添加刪除線</td> </tr> <tr> <td>u</td> <td>文本添加下劃線(不贊成)</td> </tr> <tr> <td><ins></td> <td>文本添加下劃線</td> </tr> <tr> <td>center</td> <td>定義居中文本(不贊成)</td> </tr> <tr> <td>font</td> <td>定義文本的字體、顏色、尺寸(不建議)</td> </tr> <tr> <td>sup</td> <td>上標(biāo)文本</td> </tr> <tr> <td>sub</td> <td>下標(biāo)文本</td> </tr> </tbody> </table> <b>表單標(biāo)簽</b> <p>說(shuō)明:標(biāo)簽后面帶*,說(shuō)明是單標(biāo)簽</p> <table> <thead><tr> <th>標(biāo)簽</th> <th>描述</th> <th>屬性</th> </tr></thead> <tbody> <tr> <td>form</td> <td>為用戶輸入創(chuàng)建HTML表單,用于向服務(wù)器傳輸數(shù)據(jù),塊級(jí)元素</td> <td>action/method</td> </tr> <tr> <td>input*</td> <td>文本輸入框,行內(nèi)塊</td> <td>type(text/button/checkbox/password/radio/submit)/value</td> </tr> <tr> <td>textarea*</td> <td>多行文本輸入框</td> <td>rows/cols</td> </tr> <tr> <td>button*</td> <td>按鈕</td> <td>type="button"/value</td> </tr> <tr> <td>select</td> <td>下拉選擇列表,內(nèi)嵌option標(biāo)簽</td> <td>/</td> </tr> <tr> <td>option</td> <td>select選擇列表中的選項(xiàng)</td> <td>value</td> </tr> <tr> <td>optgroup</td> <td>選擇列表中選項(xiàng)的組合,不能選中,內(nèi)嵌option標(biāo)簽</td> <td>label="華北"</td> </tr> <tr> <td>label</td> <td>為input元素定義標(biāo)記</td> <td>for(類似id)</td> </tr> <tr> <td>fieldset</td> <td>在form中,定義圍繞表單中元素的邊框,可分類打包</td> <td>/</td> </tr> <tr> <td>legend</td> <td>為fieldset元素定義標(biāo)題</td> <td>/</td> </tr> </tbody> </table> <b>框架標(biāo)簽</b> <table> <thead><tr> <th>標(biāo)簽</th> <th>描述</th> <th>屬性</th> </tr></thead> <tbody> <tr> <td>frameset</td> <td>框架集,內(nèi)嵌frame</td> <td>rows/cols</td> </tr> <tr> <td>frame</td> <td>框架</td> <td>src</td> </tr> <tr> <td>noframes</td> <td>在frameset中添加非frame標(biāo)簽,用于在瀏覽器不支持frame的時(shí)候顯示文本,包括在body標(biāo)簽內(nèi)部</td> <td>/</td> </tr> <tr> <td>iframe</td> <td>創(chuàng)建包含另外一個(gè)文檔的內(nèi)聯(lián)框架(即行內(nèi)框架</td> <td>src/scrolling/width/height</td> </tr> </tbody> </table> <b>圖像標(biāo)簽</b> <table> <thead><tr> <th>標(biāo)簽</th> <th>描述</th> <th>屬性</th> </tr></thead> <tbody> <tr> <td>img*</td> <td>圖像,行內(nèi)塊</td> <td>src/alt(替代文本)</td> </tr> <tr> <td>canvas</td> <td>圖形容器,必須用JS腳本來(lái)繪制圖形</td> <td>width/height</td> </tr> </tbody> </table> <b>音頻/視頻</b> <table> <thead><tr> <th>標(biāo)簽</th> <th>描述</th> <th>屬性</th> </tr></thead> <tbody> <tr> <td>audio</td> <td>音頻</td> <td>src/controls(顯示控件)</td> </tr> <tr> <td>source*</td> <td>內(nèi)嵌于<audio controls>,定義多個(gè)媒介資源,由瀏覽器自動(dòng)選擇支持的類型</td> <td>src/type</td> </tr> <tr> <td>video</td> <td>視頻</td> <td>src/controls(顯示控件)</td> </tr> </tbody> </table> <b>鏈接</b> <table> <thead><tr> <th>標(biāo)簽</th> <th>描述</th> <th>屬性</th> </tr></thead> <tbody> <tr> <td>a</td> <td>超鏈接,行元素</td> <td>href</td> </tr> <tr> <td>link*</td> <td>鏈接外部樣式</td> <td>rel="stylesheet"/type="text/css"/href="main.css"</td> </tr> <tr> <td>nav</td> <td>導(dǎo)航鏈接,內(nèi)嵌a標(biāo)簽</td> <td>/</td> </tr> </tbody> </table> <b>列表</b> <table> <thead><tr> <th>標(biāo)簽</th> <th>描述</th> <th>屬性</th> </tr></thead> <tbody> <tr> <td>ul-li</td> <td>無(wú)序列表</td> <td>/</td> </tr> <tr> <td>ol-li</td> <td>有序列表</td> <td>/</td> </tr> <tr> <td>dl-dt-dd</td> <td>自定義列表</td> <td>/</td> </tr> </tbody> </table> <p></p> <b>表格</b> <table> <thead><tr> <th>標(biāo)簽</th> <th>描述</th> </tr></thead> <tbody> <tr> <td><table></td> <td>定義表格</td> </tr> <tr> <td><caption></td> <td>定義表格標(biāo)題。</td> </tr> <tr> <td><th></td> <td>定義表格中的表頭單元格。</td> </tr> <tr> <td><tr></td> <td>定義表格中的行。</td> </tr> <tr> <td><td></td> <td>定義表格中的單元。</td> </tr> <tr> <td><thead></td> <td>定義表格中的表頭內(nèi)容。</td> </tr> <tr> <td><tbody></td> <td>定義表格中的主體內(nèi)容。</td> </tr> <tr> <td><tfoot></td> <td>定義表格中的表注內(nèi)容(腳注)</td> </tr> </tbody> </table> <pre> <table> <thead> <tr> <th></th> </tr> </thead> <tbody> <tr> <td></td> </tr> </tbody> <tfoot> <tr> <td></td> </tr> </tfoot> </table></pre> <b>樣式/節(jié)</b> <table> <thead><tr> <th>標(biāo)簽</th> <th>描述</th> <th>屬性</th> </tr></thead> <tbody> <tr> <td><style></td> <td>定義文檔的樣式信息。</td> <td>type="text/css"</td> </tr> <tr> <td><div></td> <td>定義文檔中的節(jié)。</td> <td> </td> </tr> <tr> <td><span></td> <td>定義文檔中的節(jié),組合行內(nèi)元素</td> <td> </td> </tr> <tr> <td><header></td> <td>定義 section 或 page 的頁(yè)眉。</td> <td> </td> </tr> <tr> <td><footer></td> <td>定義 section 或 page 的頁(yè)腳。</td> <td> </td> </tr> <tr> <td><section></td> <td>定義 section。</td> <td> </td> </tr> <tr> <td><article></td> <td>定義文章。</td> <td> </td> </tr> </tbody> </table> <b>元信息</b> <table> <thead><tr> <th>標(biāo)簽</th> <th>描述</th> <th>屬性</th> </tr></thead> <tbody><tr> <td>meta*</td> <td>頁(yè)面的元信息</td> <td>content(必須,http-equiv、name)/http-equiv/name</td> </tr></tbody> </table> <pre><meta name="keywords" content="Java培訓(xùn),web前端">//給SEO搜索引擎看的 <meta name="description" content="我們是正規(guī)的培訓(xùn)機(jī)構(gòu)XXX">//給用戶搜索看的簡(jiǎn)介 <meta name="http-equiv" content="5;http://www.baidu.com">//網(wǎng)頁(yè)重定向</pre> <b>編程</b> <table> <thead><tr> <th>標(biāo)簽</th> <th>描述</th> <th>屬性</th> </tr></thead> <tbody><tr> <td></p> <p></p> <b>transform</b> <pre>div { transform:rotate(7deg); -ms-transform:rotate(7deg); /* IE 9 */ -moz-transform:rotate(7deg); /* Firefox */ -webkit-transform:rotate(7deg); /* Safari 和 Chrome */ -o-transform:rotate(7deg); /* Opera */ }</pre> <p></p> <b>JS</b> <b>String</b> <b>屬性</b> <p><strong>legth</strong></p> <pre>var str = "123"; str.length;//3</pre> <b>方法</b> <p><strong>substring()</strong></p> <pre>stringObject.substring(start,stop) //提取子字符串,從 start 處到 stop-1 處的所有字符 //如果 start 比 stop 大,那么該方法在提取子串之前會(huì)先交換這兩個(gè)參數(shù) //不接受負(fù)的參數(shù) var str="How are you doing today?" str.substring(2,3);//"ow"</pre> <p><strong>slice()</strong></p> <pre>stringObject.slice(start,end) //從 start 開始(包括 start)到 end 結(jié)束(不包括 end)為止的所有字符 //如果start/end是負(fù)數(shù),則該參數(shù)規(guī)定的是從字符串的尾部開始算起的位置。也就是說(shuō),-1 指字符串的最后一個(gè)字符,-2 指倒數(shù)第二個(gè)字符,以此類推。 var str="How are you doing today?" str.slice(-3,-1)//"ay" //(-1,-3)返回的時(shí)"" </pre> <p><strong>split()</strong></p> <pre>stringObject.split(separator,howmany) //返回一個(gè)字符串?dāng)?shù)組,從參數(shù)separator指定的地方分割 stringObject //如果 separator 是包含子表達(dá)式的正則表達(dá)式,那么返回的數(shù)組中包括與這些子表達(dá)式匹配的字串(但不包括與整個(gè)正則表達(dá)式匹配的文本)</pre> <p>注釋:String.split() 執(zhí)行的操作與 Array.join 執(zhí)行的操作是相反的</p> <p><strong>indexOf()</strong></p> <pre>stringObject.indexOf(searchvalue,fromindex) //檢索指定的字符串值searchvalue在字符串中首次出現(xiàn)的位置,fromindex指的是開始檢索的位置 //不存在的時(shí)候返回-1</pre> <p><strong>lastindexOf()</strong></p> <pre>stringObject.lastIndexOf(searchvalue,fromindex) //返回一個(gè)指定的字符串值最后出現(xiàn)的位置,在一個(gè)字符串中的指定位置從后向前搜索。</pre> <p><strong>charAt()</strong></p> <pre>stringObject.charAt(index) //返回指定位置的字符</pre> <p><strong>contact()</strong></p> <pre>stringObject.concat(stringX,stringX,...,stringX) //連接兩個(gè)或多個(gè)字符串</pre> <p><strong>match()</strong></p> <pre>stringObject.match(searchvalue) stringObject.match(regexp) //在字符串內(nèi)檢索指定的值,或找到一個(gè)或多個(gè)正則表達(dá)式的匹配. //與indexOf()不同,match返回的是匹配到的值,而indexOf返回的是位置</pre> <p><strong>replace()</strong></p> <pre>stringObject.replace(regexp/substr,replacement) //在字符串中用一些字符替換另一些字符,或替換一個(gè)與正則表達(dá)式匹配的子串 //對(duì)大小寫不敏感</pre> <p><strong>search()</strong></p> <pre>stringObject.search(regexp) //返回stringObject 中第一個(gè)與 regexp 相匹配的子串的起始位置 //從字符串的開始進(jìn)行檢索</pre> <p><strong>valueOf()</strong></p> <pre>stringObject.valueOf() //valueOf() 方法可返回 String 對(duì)象的原始值。 //原始值是由從 String 對(duì)象下來(lái)的所有對(duì)象繼承的。 //valueOf() 方法通常由 JavaScript 在后臺(tái)自動(dòng)進(jìn)行調(diào)用,而不是顯式地處于代碼中。</pre> <p><strong>toString()</strong></p> <pre>stringObject.toString() //返回原始字符串值</pre> <p>今日頭條面試題:<br>www.baidu.com.cn==>cn.com.baidu.www</p> <pre>var arry = str.split(".")-->var newArry = arry.reverse()-->newArry.join(".")</pre> <b>Array</b> <p>(2019.1.7更)</p> <b>創(chuàng)建數(shù)組的方法</b> <p><strong>數(shù)組字面量法</strong></p> <pre>var array = [1,2,3];</pre> <p><strong>構(gòu)造函數(shù)法</strong></p> <pre>var array = new Array(/n/1,2,3);</pre> <b>屬性</b> <p><strong>length</strong></p> <pre>array.length;</pre> <b>方法</b> <p><strong>concat()</strong></p> <pre>arrayObject.concat(arrayX,arrayX,......,arrayX) //在arrayObject后面連接兩個(gè)或多個(gè)數(shù)組,返回一個(gè)新數(shù)組 //不改變現(xiàn)有數(shù)組</pre> <p><strong>join()</strong></p> <pre>arrayObject.join(separator) //以separator作為分隔符,把數(shù)組中的元素放入字符串 //與String對(duì)象的split()方法相反</pre> <p><strong>pop()</strong></p> <pre>arrayObject.pop() //刪除數(shù)組的最后一個(gè)元素,并返回該元素</pre> <p><strong>shift()</strong></p> <pre>arrayObject.shift() //刪除數(shù)組的第一個(gè)元素,并返回該元素</pre> <p><strong>push()</strong></p> <pre>arrayObject.push(newelement1,newelement2,....,newelementX) //添加一個(gè)或更多元素到數(shù)組的末尾,并返回新的數(shù)組長(zhǎng)度</pre> <p><strong>unshift()</strong></p> <pre>arrayObject.unshift(newelement1,newelement2,....,newelementX) //添加一個(gè)或更多元素到數(shù)組的開頭,并返回新的數(shù)組長(zhǎng)度</pre> <p><strong>reverse()</strong></p> <pre>arrayObject.reverse() //反轉(zhuǎn)數(shù)組 //注意:改變的是原來(lái)的數(shù)組,不會(huì)創(chuàng)建新數(shù)組</pre> <p><strong>slice()</strong></p> <pre>arrayObject.slice(start,end) //返回已有數(shù)組從start到end(不包括)的元素 //返回一個(gè)子數(shù)組,不改變?cè)瓟?shù)組</pre> <p><strong>splice()</strong></p> <pre>arrayObject.splice(index,howmany,item1,.....,itemX) //刪除從index開始的howmany(可以為0)個(gè)元素,并從刪除的位置開始添加新的元素到原數(shù)組 //返回?cái)?shù)組,改變?cè)瓟?shù)組</pre> <p><strong>sort()</strong></p> <pre>arrayObject.sort(sortby) //對(duì)數(shù)組元素排序,在原數(shù)組上進(jìn)行 //默認(rèn)按照字母順序進(jìn)行排序</pre> <p>如果想按照其他標(biāo)準(zhǔn)進(jìn)行排序,就需要提供比較函數(shù),該函數(shù)要比較兩個(gè)值,然后返回一個(gè)用于說(shuō)明這兩個(gè)值的相對(duì)順序的數(shù)字。比較函數(shù)應(yīng)該具有兩個(gè)參數(shù) a 和 b,其返回值如下:</p> <pre>- 若 a 小于 b,在排序后的數(shù)組中 a 應(yīng)該出現(xiàn)在 b 之前,則返回一個(gè)小于 0 的值。 - 若 a 等于 b,則返回 0。 - 若 a 大于 b,則返回一個(gè)大于 0 的值。</pre> <pre>function sortNum(a,b) { return a - b;//升序 //return b - a;//降序 } array.sort(sortNum);//數(shù)值字符串?dāng)?shù)組按照數(shù)值的大小對(duì)數(shù)字排序</pre> <p><strong>toString()</strong></p> <pre>array.toString() //把數(shù)組轉(zhuǎn)換為字符串,并返回該字符串</pre> <p><br><strong>valueOf()</strong></p> <pre>array.valueOf() //返回?cái)?shù)組對(duì)象的原始值</pre> <p><br></p> <b>對(duì)比String和Array</b> <table> <thead><tr> <th>String</th> <th>Array</th> </tr></thead> <tbody> <tr> <td>slice</td> <td>slice</td> </tr> <tr> <td>split</td> <td>join</td> </tr> <tr> <td>concat</td> <td>concat</td> </tr> </tbody> </table> <p>注意:Array里面slice和splice的區(qū)別——slice返回子數(shù)組,且不會(huì)改變?cè)瓟?shù)組;splice從某個(gè)位置刪除數(shù)組內(nèi)元素,并添加新元素,改變?cè)瓟?shù)組。</p> </div> <div id="6a22guqa" class="mt-64 tags-seach" > <div id="6a22guqa" class="tags-info"> <a style="width:120px;" title="GPU云服務(wù)器" href="http://m.hztianpu.com/site/product/gpu.html">GPU云服務(wù)器</a> <a style="width:120px;" title="云服務(wù)器" href="http://m.hztianpu.com/site/active/kuaijiesale.html?ytag=seo">云服務(wù)器</a> <a style="width:120px;" title="屬性定義方法" href="http://m.hztianpu.com/yun/tag/shuxingdingyifangfa/">屬性定義方法</a> <a style="width:120px;" title="linux常用常用命令" href="http://m.hztianpu.com/yun/tag/linuxchangyongchangyongmingling/">linux常用常用命令</a> <a style="width:120px;" title="方法屬性 java" href="http://m.hztianpu.com/yun/tag/fangfashuxing java/">方法屬性 java</a> <a style="width:120px;" title="linux命令常用命令" href="http://m.hztianpu.com/yun/tag/linuxminglingchangyongmingling/">linux命令常用命令</a> </div> </div> <div id="6a22guqa" class="entry-copyright mb-30"> <p class="mb-15"> 文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。</p> <p>轉(zhuǎn)載請(qǐng)注明本文地址:http://m.hztianpu.com/yun/100742.html</p> </div> <ul class="pre-next-page"> <li id="6a22guqa" class="ellipsis"><a class="hpf" href="http://m.hztianpu.com/yun/100741.html">上一篇:【刷算法】LeetCode.236-二叉樹的最近公共祖先</a></li> <li id="6a22guqa" class="ellipsis"><a class="hpf" href="http://m.hztianpu.com/yun/100743.html">下一篇:入門nodeJs(第三課)</a></li> </ul> </div> <div id="6a22guqa" class="about_topicone-mid"> <h3 class="top-com-title mb-0"><span data-id="0">相關(guān)文章</span></h3> <ul class="com_white-left-mid atricle-list-box"> <li> <div id="6a22guqa" class="atricle-list-right"> <h2 class="ellipsis2"><a class="hpf" href="http://m.hztianpu.com/yun/117184.html"><b><em>前端</em><em>常用</em><em>屬性</em>/<em>方法</em>/<em>命令</em><em>積累</em></b></a></h2> <p class="ellipsis2 good">摘要:定義表格中的表注內(nèi)容腳注樣式節(jié)標(biāo)簽描述屬性定義文檔的樣式信息。原始值是由從對(duì)象下來(lái)的所有對(duì)象繼承的。方法通常由在后臺(tái)自動(dòng)進(jìn)行調(diào)用,而不是顯式地處于代碼中。 HTML常用標(biāo)簽 其實(shí)在w3school上都有詳細(xì)的總結(jié)和描述,寫在這里是為了理清自己的思路,整理比較常用的標(biāo)簽。原地址:http://www.w3school.com.cn/ta... //tag 基礎(chǔ)...</p> <div id="6a22guqa" class="com_white-left-info"> <div id="6a22guqa" class="com_white-left-infol"> <a href="http://m.hztianpu.com/yun/u-760.html"><img src="http://m.hztianpu.com/yun/data/avatar/000/00/07/small_000000760.jpg" alt=""><span id="6a22guqa" class="layui-hide64">wupengyu</span></a> <time datetime="">2019-08-30 15:55</time> <span><i class="fa fa-commenting"></i>評(píng)論0</span> <span><i class="fa fa-star"></i>收藏0</span> </div> </div> </div> </li> <li> <div id="6a22guqa" class="atricle-list-right"> <h2 class="ellipsis2"><a class="hpf" href="http://m.hztianpu.com/yun/53530.html"><b><em>前端</em><em>常用</em><em>屬性</em>/<em>方法</em>/<em>命令</em><em>積累</em></b></a></h2> <p class="ellipsis2 good">摘要:定義表格中的表注內(nèi)容腳注樣式節(jié)標(biāo)簽描述屬性定義文檔的樣式信息。原始值是由從對(duì)象下來(lái)的所有對(duì)象繼承的。方法通常由在后臺(tái)自動(dòng)進(jìn)行調(diào)用,而不是顯式地處于代碼中。 HTML常用標(biāo)簽 其實(shí)在w3school上都有詳細(xì)的總結(jié)和描述,寫在這里是為了理清自己的思路,整理比較常用的標(biāo)簽。原地址:http://www.w3school.com.cn/ta... //tag 基礎(chǔ)...</p> <div id="6a22guqa" class="com_white-left-info"> <div id="6a22guqa" class="com_white-left-infol"> <a href="http://m.hztianpu.com/yun/u-136.html"><img src="http://m.hztianpu.com/yun/data/avatar/000/00/01/small_000000136.jpg" alt=""><span id="6a22guqa" class="layui-hide64">lastSeries</span></a> <time datetime="">2019-08-02 14:02</time> <span><i class="fa fa-commenting"></i>評(píng)論0</span> <span><i class="fa fa-star"></i>收藏0</span> </div> </div> </div> </li> <li> <div id="6a22guqa" class="atricle-list-right"> <h2 class="ellipsis2"><a class="hpf" href="http://m.hztianpu.com/yun/97721.html"><b><em>前端</em><em>常用</em>函數(shù)<em>積累</em></b></a></h2> <p class="ellipsis2 good">摘要:參數(shù)對(duì)象數(shù)組,需要排序的目標(biāo)要按排序的對(duì)象屬性名稱排序的方向,為從小到大是否使用模式,默認(rèn)為,注意,使用該參數(shù)時(shí)前面的必須傳入。使用場(chǎng)景想要排列一個(gè)對(duì)象數(shù)組,條件是根據(jù)這些對(duì)象中的某個(gè)屬性。 cdd-lib 個(gè)人常用庫(kù)積累 說(shuō)明 本庫(kù)是完全的es2015模塊語(yǔ)法,也使用了ts源碼。所以使用commonjs方式導(dǎo)致不可用。 路徑和引用說(shuō)明 /index.js 根路徑的index.js文件...</p> <div id="6a22guqa" class="com_white-left-info"> <div id="6a22guqa" class="com_white-left-infol"> <a href="http://m.hztianpu.com/yun/u-863.html"><img src="http://m.hztianpu.com/yun/data/avatar/000/00/08/small_000000863.jpg" alt=""><span id="6a22guqa" class="layui-hide64">ACb0y</span></a> <time datetime="">2019-08-23 11:57</time> <span><i class="fa fa-commenting"></i>評(píng)論0</span> <span><i class="fa fa-star"></i>收藏0</span> </div> </div> </div> </li> <li> <div id="6a22guqa" class="atricle-list-right"> <h2 class="ellipsis2"><a class="hpf" href="http://m.hztianpu.com/yun/115635.html"><b><em>常用</em><em>前端</em>知識(shí)<em>積累</em></b></a></h2> <p class="ellipsis2 good">摘要:閉包的理解使用閉包主要是為了設(shè)計(jì)私有的方法和變量。只在中存放不敏感數(shù)據(jù),即使被盜也不會(huì)有重大損失。每個(gè)最多只能有條,每個(gè)長(zhǎng)度不能超過(guò),否則會(huì)被截掉。有些狀態(tài)不可能保存在客戶端。例如,為了防止重復(fù)提交表單,我們需要在服務(wù)器端保存一個(gè)計(jì)數(shù)器。 閉包的理解 使用閉包主要是為了設(shè)計(jì)私有的方法和變量。 優(yōu)點(diǎn)是可以避免全局變量的污染, 缺點(diǎn)是閉包會(huì)常駐內(nèi)存,會(huì)增大內(nèi)存使用量,使用不當(dāng)很容易造成內(nèi)存...</p> <div id="6a22guqa" class="com_white-left-info"> <div id="6a22guqa" class="com_white-left-infol"> <a href="http://m.hztianpu.com/yun/u-1678.html"><img src="http://m.hztianpu.com/yun/data/avatar/000/00/16/small_000001678.jpg" alt=""><span id="6a22guqa" class="layui-hide64">B0B0</span></a> <time datetime="">2019-08-30 13:55</time> <span><i class="fa fa-commenting"></i>評(píng)論0</span> <span><i class="fa fa-star"></i>收藏0</span> </div> </div> </div> </li> <li> <div id="6a22guqa" class="atricle-list-right"> <h2 class="ellipsis2"><a class="hpf" href="http://m.hztianpu.com/yun/107180.html"><b><em>常用</em><em>前端</em>知識(shí)<em>積累</em></b></a></h2> <p class="ellipsis2 good">摘要:閉包的理解使用閉包主要是為了設(shè)計(jì)私有的方法和變量。只在中存放不敏感數(shù)據(jù),即使被盜也不會(huì)有重大損失。每個(gè)最多只能有條,每個(gè)長(zhǎng)度不能超過(guò),否則會(huì)被截掉。有些狀態(tài)不可能保存在客戶端。例如,為了防止重復(fù)提交表單,我們需要在服務(wù)器端保存一個(gè)計(jì)數(shù)器。 閉包的理解 使用閉包主要是為了設(shè)計(jì)私有的方法和變量。 優(yōu)點(diǎn)是可以避免全局變量的污染, 缺點(diǎn)是閉包會(huì)常駐內(nèi)存,會(huì)增大內(nèi)存使用量,使用不當(dāng)很容易造成內(nèi)存...</p> <div id="6a22guqa" class="com_white-left-info"> <div id="6a22guqa" class="com_white-left-infol"> <a href="http://m.hztianpu.com/yun/u-1036.html"><img src="http://m.hztianpu.com/yun/data/avatar/000/00/10/small_000001036.jpg" alt=""><span id="6a22guqa" class="layui-hide64">haobowd</span></a> <time datetime="">2019-08-26 11:35</time> <span><i class="fa fa-commenting"></i>評(píng)論0</span> <span><i class="fa fa-star"></i>收藏0</span> </div> </div> </div> </li> </ul> </div> <div id="6a22guqa" class="topicone-box-wangeditor"> <h3 class="top-com-title mb-64"><span>發(fā)表評(píng)論</span></h3> <div id="6a22guqa" class="xcp-publish-main flex_box_zd"> <div id="6a22guqa" class="unlogin-pinglun-box"> <a href="javascript:login()" class="grad">登陸后可評(píng)論</a> </div> </div> </div> <div id="6a22guqa" class="site-box-content"> <div id="6a22guqa" class="site-content-title"> <h3 class="top-com-title mb-64"><span>0條評(píng)論</span></h3> </div> <div id="6a22guqa" class="pages"></ul></div> </div> </div> <div id="6a22guqa" class="layui-col-md4 layui-col-lg3 com_white-right site-wrap-right"> <div id="6a22guqa" class=""> <div id="6a22guqa" class="com_layuiright-box user-msgbox"> <a href="http://m.hztianpu.com/yun/u-657.html"><img src="http://m.hztianpu.com/yun/data/avatar/000/00/06/small_000000657.jpg" alt=""></a> <h3><a href="http://m.hztianpu.com/yun/u-657.html" rel="nofollow">xcold</a></h3> <h6>男<span>|</span>高級(jí)講師</h6> <div id="6a22guqa" class="flex_box_zd user-msgbox-atten"> <a href="javascript:attentto_user(657)" id="attenttouser_657" class="grad follow-btn notfollow attention">我要關(guān)注</a> <a href="javascript:login()" title="發(fā)私信" >我要私信</a> </div> <div id="6a22guqa" class="user-msgbox-list flex_box_zd"> <h3 class="hpf">TA的文章</h3> <a href="http://m.hztianpu.com/yun/ut-657.html" class="box_hxjz">閱讀更多</a> </div> <ul class="user-msgbox-ul"> <li><h3 class="ellipsis"><a href="http://m.hztianpu.com/yun/123722.html">【LeetCode 二叉樹專項(xiàng)】把二叉搜索樹轉(zhuǎn)換為累加樹(538)</a></h3> <p>閱讀 3331<span>·</span>2021-11-18 10:02</p></li> <li><h3 class="ellipsis"><a href="http://m.hztianpu.com/yun/122249.html">UCloud金秋狂歡盛典-烏蘭察布上新首促,快杰共享型低至3元/1個(gè)月或37元/年-老劉博客</a></h3> <p>閱讀 1548<span>·</span>2021-10-12 10:08</p></li> <li><h3 class="ellipsis"><a href="http://m.hztianpu.com/yun/122120.html">Docker安裝InfluxDB_用戶名密碼和策略使用</a></h3> <p>閱讀 1370<span>·</span>2021-10-11 10:58</p></li> <li><h3 class="ellipsis"><a href="http://m.hztianpu.com/yun/122098.html">安裝鴻蒙開發(fā)工具-DevEco Studio</a></h3> <p>閱讀 1354<span>·</span>2021-10-11 10:57</p></li> <li><h3 class="ellipsis"><a href="http://m.hztianpu.com/yun/121761.html">golang實(shí)現(xiàn)儀表控制-visa32.dll方式</a></h3> <p>閱讀 1256<span>·</span>2021-10-08 10:04</p></li> <li><h3 class="ellipsis"><a href="http://m.hztianpu.com/yun/121543.html">【C++從0到1】新手都能看懂的C++入門(上篇),建議收藏</a></h3> <p>閱讀 2202<span>·</span>2021-09-29 09:35</p></li> <li><h3 class="ellipsis"><a href="http://m.hztianpu.com/yun/120585.html">彈性云主機(jī)是什么原因-電信云主機(jī)是什么?</a></h3> <p>閱讀 851<span>·</span>2021-09-22 15:44</p></li> <li><h3 class="ellipsis"><a href="http://m.hztianpu.com/yun/119030.html">微軟宣布將于 9 月 22 日舉行 Surface 和 Windows 11 活動(dòng)</a></h3> <p>閱讀 1345<span>·</span>2021-09-03 10:30</p></li> </ul> </div> <!-- 文章詳情右側(cè)廣告--> <div id="6a22guqa" class="com_layuiright-box"> <h6 class="top-com-title"><span>最新活動(dòng)</span></h6> <div id="6a22guqa" class="com_adbox"> <div id="6a22guqa" class="layui-carousel" id="right-item"> <div carousel-item> <div> <a href="http://m.hztianpu.com/site/active/kuaijiesale.html?ytag=seo" rel="nofollow"> <img src="http://m.hztianpu.com/yun/data/attach/240625/2rTjEHmi.png" alt="云服務(wù)器"> </a> </div> <div> <a href="http://m.hztianpu.com/site/product/gpu.html" rel="nofollow"> <img src="http://m.hztianpu.com/yun/data/attach/240807/7NjZjdrd.png" alt="GPU云服務(wù)器"> </a> </div> </div> </div> </div> <!-- banner結(jié)束 --> <div id="6a22guqa" class="adhtml"> </div> </div> </div> </div> </div> </div> </section> <!-- wap拉出按鈕 --> <div id="6a22guqa" class="site-tree-mobile layui-hide"> <i class="layui-icon layui-icon-spread-left"></i> </div> <!-- wap遮罩層 --> <div id="6a22guqa" class="site-mobile-shade"></div> <!--付費(fèi)閱讀 --> <div class="6a22guqa" id="payread"> <div id="6a22guqa" class="layui-form-item">閱讀需要支付1元查看</div> <div id="6a22guqa" class="layui-form-item"><button class="btn-right">支付并查看</button></div> </div> <link rel="stylesheet" type="text/css" href="http://m.hztianpu.com/yun/static/js/neweditor/code/styles/tomorrow-night-eighties.css"> <footer> <div id="6a22guqa" class="layui-container"> <div id="6a22guqa" class="flex_box_zd"> <div id="6a22guqa" class="left-footer"> <h6><a href="http://m.hztianpu.com/"><img src="http://m.hztianpu.com/yun/static/theme/ukd//images/logo.png" alt="UCloud (優(yōu)刻得科技股份有限公司)"></a></h6> <p>UCloud (優(yōu)刻得科技股份有限公司)是中立、安全的云計(jì)算服務(wù)平臺(tái),堅(jiān)持中立,不涉足客戶業(yè)務(wù)領(lǐng)域。公司自主研發(fā)IaaS、PaaS、大數(shù)據(jù)流通平臺(tái)、AI服務(wù)平臺(tái)等一系列云計(jì)算產(chǎn)品,并深入了解互聯(lián)網(wǎng)、傳統(tǒng)企業(yè)在不同場(chǎng)景下的業(yè)務(wù)需求,提供公有云、混合云、私有云、專有云在內(nèi)的綜合性行業(yè)解決方案。</p> </div> <div id="6a22guqa" class="right-footer layui-hidemd"> <ul class="flex_box_zd"> <li> <h6>UCloud與云服務(wù)</h6> <p><a href="http://m.hztianpu.com/site/about/intro/">公司介紹</a></p> <p><a >加入我們</a></p> <p><a href="http://m.hztianpu.com/site/ucan/onlineclass/">UCan線上公開課</a></p> <p><a href="http://m.hztianpu.com/site/solutions.html" >行業(yè)解決方案</a></p> <p><a href="http://m.hztianpu.com/site/pro-notice/">產(chǎn)品動(dòng)態(tài)</a></p> </li> <li> <h6>友情鏈接</h6> <p><a >GPU算力平臺(tái)</a></p> <p><a >UCloud私有云</a></p> <p><a >SurferCloud</a></p> <p><a >工廠仿真軟件</a></p> <p><a >AI繪畫</a></p> <p><a >Wavespeed AI</a></p> </li> <li> <h6>社區(qū)欄目</h6> <p><a href="http://m.hztianpu.com/yun/column/index.html">專欄文章</a></p> <p><a href="http://m.hztianpu.com/yun/udata/">專題地圖</a></p> </li> <li> <h6>常見(jiàn)問(wèn)題</h6> <p><a href="http://m.hztianpu.com/site/ucsafe/notice.html" >安全中心</a></p> <p><a href="http://m.hztianpu.com/site/about/news/recent/" >新聞動(dòng)態(tài)</a></p> <p><a href="http://m.hztianpu.com/site/about/news/report/">媒體動(dòng)態(tài)</a></p> <p><a href="http://m.hztianpu.com/site/cases.html">客戶案例</a></p> <p><a href="http://m.hztianpu.com/site/notice/">公告</a></p> </li> <li> <span><img src="https://static.ucloud.cn/7a4b6983f4b94bcb97380adc5d073865.png" alt="優(yōu)刻得"></span> <p>掃掃了解更多</p></div> </div> <div id="6a22guqa" class="copyright">Copyright ? 2012-2025 UCloud 優(yōu)刻得科技股份有限公司<i>|</i><a rel="nofollow" >滬公網(wǎng)安備 31011002000058號(hào)</a><i>|</i><a rel="nofollow" ></a> 滬ICP備12020087號(hào)-3</a><i>|</i> <!-- Global site tag (gtag.js) - Google Analytics --> </div> </div> </footer> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <h1><a href="http://m.hztianpu.com/">成人无码视频,亚洲精品久久久久av无码,午夜精品久久久久久毛片,亚洲 中文字幕 日韩 无码</a></h1> <div class="friend-links"> </div> </div> </footer> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body><div id="m6ekq" class="pl_css_ganrao" style="display: none;"><option id="m6ekq"><samp id="m6ekq"><tbody id="m6ekq"></tbody></samp></option><pre id="m6ekq"><xmp id="m6ekq"><tfoot id="m6ekq"></tfoot></xmp></pre><bdo id="m6ekq"></bdo><em id="m6ekq"></em><em id="m6ekq"><blockquote id="m6ekq"><tfoot id="m6ekq"></tfoot></blockquote></em><button id="m6ekq"></button><pre id="m6ekq"></pre><tbody id="m6ekq"></tbody><acronym id="m6ekq"></acronym><samp id="m6ekq"></samp><strike id="m6ekq"></strike><delect id="m6ekq"></delect><code id="m6ekq"></code><abbr id="m6ekq"><sup id="m6ekq"><center id="m6ekq"></center></sup></abbr><fieldset id="m6ekq"></fieldset><strong id="m6ekq"></strong><center id="m6ekq"><dd id="m6ekq"><strong id="m6ekq"></strong></dd></center><rt id="m6ekq"></rt><strong id="m6ekq"></strong><kbd id="m6ekq"></kbd><samp id="m6ekq"></samp><nav id="m6ekq"></nav><bdo id="m6ekq"></bdo><s id="m6ekq"></s><cite id="m6ekq"></cite><source id="m6ekq"></source><th id="m6ekq"><nav id="m6ekq"><abbr id="m6ekq"></abbr></nav></th><fieldset id="m6ekq"></fieldset><dl id="m6ekq"></dl><sup id="m6ekq"><center id="m6ekq"><dl id="m6ekq"></dl></center></sup><pre id="m6ekq"><del id="m6ekq"><tfoot id="m6ekq"></tfoot></del></pre><object id="m6ekq"></object><dfn id="m6ekq"></dfn><nav id="m6ekq"></nav><noframes id="m6ekq"></noframes><pre id="m6ekq"><blockquote id="m6ekq"><strike id="m6ekq"></strike></blockquote></pre><button id="m6ekq"><samp id="m6ekq"><tbody id="m6ekq"></tbody></samp></button><ul id="m6ekq"><dfn id="m6ekq"><source id="m6ekq"></source></dfn></ul><code id="m6ekq"></code><strong id="m6ekq"></strong><sup id="m6ekq"></sup><dfn id="m6ekq"><source id="m6ekq"><code id="m6ekq"></code></source></dfn><s id="m6ekq"></s><pre id="m6ekq"><td id="m6ekq"><cite id="m6ekq"></cite></td></pre><center id="m6ekq"></center><delect id="m6ekq"></delect><tfoot id="m6ekq"></tfoot><em id="m6ekq"></em><cite id="m6ekq"></cite></div> < </html>