看板 Ajax 關於我們 聯絡資訊
robinnpca:1.子頁想用top.inner去操控ready內的inner 但是不行10/29 19:00
robinnpca:2退而求其次top.out1()可以,然後out1()想去啟動inner()10/29 19:01
robinnpca:後面這out1()去啟動inner()不知怎麼做10/29 19:01
既然子頁面要用到 inner 把它寫在外面不就好了? $(document).ready(function(){ // 假設你要 bind button 的 click $("input#ID").click(theFunction); //假設你要直接呼叫 theFunction(); }); function theFunction(){ // Something } 這樣開新的視窗不就可以呼叫到這個 function 了嗎 ? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.123.82.7 ※ 編輯: darkk6 來自: 122.123.82.7 (10/29 23:27)
robinnpca:因為inner()若寫在外面有些jquery語法會失效..不知為何 10/31 10:42