©
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>