解决方案 »
- 请教有关JS构造函数的相关知识疑难?
- js com口 打印完不能切纸
- 如何判断表单内容无变化
- 如何让innerHTML 取到的代码不发生改变?
- 如何用javascript在sharepoint取数据,并在photoshop中用scriptUI去显示?
- js 中 alert、confirm 怎么弹出 指定标题的弹出窗口 ?有无javascript的帮助文档下载?
- 重发!请一定看看!请问如何选择全部表格的内容?请看详细内容
- 还是我,另一个问题
- 谁能答复我呀?一个很简单的问题
- 请问如何在单击一个链接时启动应用程序,象mailto标记。
- 丑陋的贪吃蛇,没分了,帮帮忙哈
- 第三方账号登录时认证的问题oAuth2.0
$(this.contentWindow.document.body).find('a').each(function(){
var t=$(this);
if (t.text() == "cba") {
t.attr("id", "aaa");
t.removeAttr("onclick");t.click(function(){alert(1)});
}
})})
$(function () {
$('iframe').load(function () {
$(this).contents().find('a').each(function () {
if ($(this).text() == "cba") {
$(this).attr("id", "aaa");
$(this).removeAttr("onclick");
$(this).bind("click", function qwe() {
alert(1);
});
}
});
});
});
判断ownerDocument
location.pathname得到页面路径