$(document).ready(function(){function foo1(){alert(123);}});function foo2(){foo1();}調(diào)用foo2時(shí)說(shuō)foo1未定義說(shuō)明:foo2無(wú)法放入ready中因?yàn)橛衖frame會(huì)通過(guò)window.parent.foo2()調(diào)用它放入ready后會(huì)提示foo2未定義問(wèn):foo2如何調(diào)用foo1
jquery緊急提問(wèn),js如何調(diào)用jquery內(nèi)的函數(shù)?
炎炎設(shè)計(jì)
2018-11-14 15:11:24