jQuery中的javascript父属性 [英] javascript parent property in jquery
本文介绍了jQuery中的javascript父属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是一个JavaScript函数
This is a JavaScript Function
parent.document.getElementsByTagName("FRAMESET").item(1).cols = ''100,*'';
是否可以重写此函数为JQuery.请帮帮我吗?
is it possibe to rewrite this function is JQuery. Please help me?
推荐答案
(#framesetid或是否有一个?frameset").find(# frameid).attr(" cols," 100,*)
但是我还没有测试过.
("#framesetid or if there is one? frameset").find("#frameid").attr("cols", "100,*")
but i haven''t tested it yet.
这篇关于jQuery中的javascript父属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文