freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

漫談firefox與ie兼容-資料下載頁

2025-05-17 13:52本頁面
  

【正文】 function myalert(){var arr=[]。for(var i=0。iarr[i]=[i]。alert(())。}alert(hello,world,1,2,3)就能顯示 helloworld123(arguments的個數(shù)與調用方有關,而與函數(shù)的參數(shù)定義沒有任何關系)根據(jù)這兩個屬性,我們可以得到第一個函數(shù)的event對象:=handle_click。function handle_click(){showcontent()。}function showcontent(){var evt=SearchEvent()。if(evtamp。amp。)//如果是基于事件的調用,并且shift被按下(global_helpurl)。else=global_helpurl。}function SearchEvent(){func=。while(func!=null){var arg0=[0]。if(arg0){if(==Event) // 如果就是event 對象return arg0。}func=。}return null。}這個例子使用了SearchEvent來搜索event對象. 其中 39。Event39。 是 FireFox 的 .在該例子運行時,[0] func= 時,func變?yōu)閔andle_click .handle_click 被 FireFox 調用, 雖然沒有定義參數(shù),但是被調用時,第一個參數(shù)就是event,[0]就是event !針對上面的知識,我們可以結合 來實現(xiàn) 在 FireFox 下的實現(xiàn):下面給出一個簡單的代碼.. 有興趣的可以補充if(){FixPrototypeForGecko()。}function FixPrototypeForGecko(){(runtimeStyle,element_prototype_get_runtimeStyle)。(event,window_prototype_get_event)。(srcElement,event_prototype_get_srcElement)。}function element_prototype_get_runtimeStyle(){//return style instead...return 。}function window_prototype_get_event(){return SearchEvent()。}function event_prototype_get_srcElement(){return 。}function SearchEvent(){//IEif()return 。func=。while(func!=null){var arg0=[0]。if(arg0){if(==Event)return arg0。}func=。}return null。}/body/htmlfirefox與IE(parentElement)的父元素的區(qū)別因為firefox與IE都支持DOM,.IEfirefox 方法,則使用控件的時候要這樣來作javascript:OnSelectSubCatalog(\++\,+catalogIDX+,+()+)。調用Select元素的區(qū)別移出一個選擇項IE :()。 firefox :增加選擇項:IE: (new Option(text,value))。firefox: var opnObj = (OPTION)。 // = optionID。 = value。 = text。 (opnObj)。cursor:hand VS cursor:pointerfirefox不支持hand,但ie支持pointer,所以建議統(tǒng)一使用pointer。10 / 10
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1