- 注册时间
- 2014-11-21
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 119
- 精华
- 0
- 帖子
- 30
|
var parentTabs;
$(document).ready(function () {
//jquery获取OK
var jobject = $(".mini-tabs", window.parent.document);
if (jobject == null) return;
//id获取OK
var id = jobject.attr("id");
if (typeof id == "undefined") return;
//name设置成功
var name = jobject.attr("name");
if (typeof name == "undefined") {
name = id + "C99";
jobject.attr("name", name);
}
//mini对象获取失败!!!!!!返回undefined
parentTabs= mini.getbyName(name, window.parent.document);
});
求救!!!大神为什么mini获取失败? |
|