Time of Update: 2018-12-05
這是一些分析jQuery架構的文字針對jQuery 1.3.2版本面向的讀者應具備以下要求1.非常熟悉HTML2.非常熟悉javascript文法知識3.熟悉javascript物件導向方面的知識4.熟練使用jQuery架構言歸正傳!jQuery對象的初始化是寫在匿名函數裡的就像這樣:(function(){alert("jQuery架構分析")})();
Time of Update: 2018-12-05
1. 你熟悉那些塊元素,盒子模型理解◎ address - 地址◎ blockquote - 區塊引述◎ center - 舉中對齊塊◎ dir - 目錄列表◎ div - 常用塊級容易,也是css layout的主要標籤◎ dl - 定義列表◎ fieldset- form控制組◎ form - 互動表單◎ h1 - 大標題◎ h2 - 副標題◎ h3 - 3級標題◎ h4 - 4級標題◎ h5 - 5級標題◎ h6 - 6級標題◎ hr - 水平分隔線◎ isindex - input
Time of Update: 2018-12-05
這裡有一個網址收集了關於JS遊戲引擎開發庫的一個列表,轉過來。關於使用JS和HTML5做的一些小遊戲,可參見《HTML5 小遊戲展示》 遊戲引擎NameLatest ReleaseLicenseTypeNotes The Render Engine1.5.3MIT跨瀏覽器; 大規模 API; 開源. 2 gameQuery0.5.1CC BY-SA 2.5和 jQuery 一起使用 gTile0.0.1Tile based Akihabara1.3GPL2/MITClassic
Time of Update: 2018-12-05
1.僅IE可見的寫法 <!--[if IE]>此處內容只有IE可見<![endif]–> 2.僅IE6可見的寫法 <!-–[if IE 6]>此處內容只有IE6.0可見<![endif]–-> 3.僅IE7可見的寫法 <!–-[if IE 7]>此處內容只有IE7.0可見<![endif]–-> 4.版本區間可顯示寫法 <!--[if lt IE 6]> IE6以及IE6以下版本可識別 <![
Time of Update: 2018-12-05
外掛程式前面的Y.是基於我自己的外掛程式封裝,可以換為var 執行。本外掛程式用於公司網站。僅供大家參考。有更好的實現方式或者問題,請留言。<div class="phone_av"></div>Y.setHightlight.set({ target:Y.$id("phone_av"), speed : 40, defaultColor : "#FFF4D9" }); //高亮某地區Y.setHightlight = (function(
Time of Update: 2018-12-05
今天跟群裡的人聊到JS效能的問題,網上總結的也蠻多的,這裡我就大概寫寫:1、迴圈迴圈是我們最常用到的語句之一,其中for in 這個東西嚴重影響js效率。for in會讓js指令碼引擎建立一張可枚舉的屬性列表,然後一一對比是否重複。所以盡量避免使用2、eval 和
Time of Update: 2018-12-05
看了miaov blue課程講煙花效果,邊看邊學習的,大家可以去看看blue的相關課程<style> body{background:#000;overflow:hidden;} div{ position:absolute;}</style><script type="text/javascript">function getRndAndFillZero(){ var str=Math.ceil(Math.random()*16777215
Time of Update: 2018-12-05
這個外掛程式是基於我自己封裝的公用方法寫的,大家可以通過絕對路徑調用試試看,匆忙寫的有問題聯絡我~~<script type="text/javascript" src="http://www.yuetaojie.com/App/Tpl/Home/Default/Public/js/common.js"></script><style type="text/css"> .colorTools{ position:absolute;}
Time of Update: 2018-12-05
在IE6 IE7 下給父頁面添加元素,你必須給父頁面建立該元素,parent.document.createElement(‘div’); 在FF IE8中,允許在子頁面建立父頁面的元素。所以在FF IE8中可以使用parent.document.createElement(‘div’);或者document.createElement(‘div’)總結:使用 parent.document.createElement(‘div’); 為父頁面建立元素。(此測試只針對了IE
Time of Update: 2018-12-05
#showtooltips/cast 神聖犧牲/Y 我已開××神聖犧牲××/in 3 /y ××群體盾牆還有3秒結束!××/in 4 /y ××群體盾牆還有2秒結束!××/in 5 /y ××群體盾牆還有1秒結束!××#showtooltips/cast 聖佑術/Y 我已開××聖佑術××/in 9 /y ××盾牆還有3秒結束!××/in 10 /y ××盾牆還有2秒結束!××/in 11 /y ××盾牆還有1秒結束!××#show/cast [help][target=targettarget,
Time of Update: 2018-12-05
prototype可以把那些固定的屬性和方法,直接定義在prototype身上var Cat = function(name,color){ this.name = name; this.color = color;} Cat.prototype = { type:"貓科", eat:function(){ alert("吃老鼠"); } }//產生執行個體var cat1 = new Cat("大毛","黃色");var cat2 =
Time of Update: 2018-12-05
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html;
Time of Update: 2018-12-05
var now = new Date(); //當前日期 var nowDayOfWeek = now.getDay(); //今天本周的第幾天 var nowDay = now.getDate(); //當前日 var nowMonth = now.getMonth(); //當前月 var nowYear = now.getYear();
Time of Update: 2018-12-05
<!DOCTYPE html> <title>HTML5新增元素</title> <header> header元素表示頁面中的一個內容區塊或整個頁面的標題 </header> <hr/> <nav> 導航 </nav> <hr/>
Time of Update: 2018-12-05
在一個function裡有一個each,在each裡某種條件 成立的話,就把這個function返回true或者falsefunction methodone(){....$.each(array,function(){if(條件成立){return true;}});....}如果發現老是不對。後來尋找資料才發現,在each代碼塊內不能使用break和continue,要實現break和continue的功能的話,要使用其它的方式break----用return false;continue
Time of Update: 2018-12-05
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;
Time of Update: 2018-12-05
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;
Time of Update: 2018-12-05
color:<input type="text" id="color"> op:<input type="text" id="op" value="" /><input value="色彩轉換" type="button" id="btn"><div id="writeBox"></div><script type="text/javascript">function $(id){return typeof id === "
Time of Update: 2018-12-05
經過新一輪實踐,又掌握了不少東西。本文針對《Ext2.0 form使用執行個體》中沒有談到的東西進行一點補充。1、 增加一個空白列 coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
Time of Update: 2018-12-05
Install nis service > sudo apt-get install nis Install autofs service > sudo apt-get install autofs Edit /etc/auto.master and add the following lines /home auto.home --timeout=10000 Edit /etc/yp.conf