?
This document uses PHP Chinese website manual Release
測試對象是否是窗口(有可能是Frame)。
用于測試是否為窗口的對象
測試是否為窗口
jQuery 代碼:
<!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-1.5.2.js"></script> </head> <body> Is 'window' a window? <b></b> <script>$("b").append( "" + $.isWindow(window) );</script> </body> </html>