判断是否是对象获取子窗体值
2021-07-01 16:05
标签:log select context return 获取 ret prot UNC tostring 父窗体获取返回值 判断是否是对象获取子窗体值 标签:log select context return 获取 ret prot UNC tostring 原文地址:https://www.cnblogs.com/shuaimeng/p/9946718.html判断是否是对象
Object.prototype.toString.call(obj)
装换为数组
Array.prototype.slice.call(obj)
父窗体获取值子窗体值
$(function () {
$("#icons .filter-icon a").click(function () {
var icon = $(this).find(‘i‘).attr(‘class‘);
$(‘#icontext‘).val(icon);
window.parent.document.all.returnValue = icon;
})
})
function SelectIconed() {
var txt = document.all.returnValue;
$(‘#getIcon‘).val(txt);
$("#dvgIcon").dialog("close");
}