$("#treeLevel",window.top.frames["topframe"].document).val() window 是对当前窗口自身的引用 top 返回顶层窗口,即浏览器窗口 parent 返回父窗口