写在前面:本文所有总结的ligerui实例,均为工作中遇到的坑,写下来,为了自勉也为了后面的人少踩坑。
1.ligerUi 中的对话框dialog,调用父窗口的数据。
var type = parent.window.document.getElementById("id").value;
2.ligerUi 中调用父级元素的父级元素的数据。
var type = parent.parent.window.document.getElementById("id").value;
写在前面:本文所有总结的ligerui实例,均为工作中遇到的坑,写下来,为了自勉也为了后面的人少踩坑。
1.ligerUi 中的对话框dialog,调用父窗口的数据。
var type = parent.window.document.getElementById("id").value;
2.ligerUi 中调用父级元素的父级元素的数据。
var type = parent.parent.window.document.getElementById("id").value;