jQuery语法:$(选择器, [待查文档])

$("#reportFrameForm",document.frames('reportFrame').document)
先解释document.frames('reportFrame').document 这句是原生态的javascript意思是.获取当前文档(document)里框架集(frames)里id/name为reportFrame的文档(最后的那个document)

jQuery语法:$(选择器,[待查文档]) 如果没有指定[待查文档]就是$(选择器)这样,指从当前文档查询.如果指定了[待查文档]就从指定的待查文档里查询选择器.

$("#reportFrameForm" 的意思就是"找到id为reportFrameForm的DOM元素

$("#reportFrameForm",document.frames('reportFrame').document) 整句的意思就是:
从当前页面的名字为reportFrame的框架页面里找到id为reportFrameForm

posted on 2024-04-17 13:21  itjeff  阅读(3)  评论(0编辑  收藏  举报

导航