
JS
文章平均质量分 52
iteye_5237
这个作者很懒,什么都没留下…
展开
-
js 两数组比较
var a=['a','b','c','d','e']; var b=['a','b','f','g','h']; var arr1 = intersection(a,b); alert(arr1); var arr2 = chaji(a,b); alert(arr2); var arr3 = inANotInB(a,b); alert(arr3); //a,b...原创 2012-07-18 17:03:08 · 169 阅读 · 0 评论 -
window.showModalDialog弹出对话框刷新问题的总结
转http://www.cnblogs.com/zengwei/archive/2011/10/22/2221045.html window.showModalDialog刷新父窗口和本窗口的方法及注意: 一.刷新父窗口的方法: A.使用window.returnValue给父窗口传值,然后根据值判断是否刷新。 在window.showModalDialog窗口页面中...原创 2013-05-15 22:24:27 · 169 阅读 · 0 评论 -
禁止网页右键
function click(e) { if (document.all) { if (event.button==1||event.button==2||event.button==3) { oncontextmenu='return false'; } } if (document.layers) { if (e.which == 3) { onc...原创 2013-01-04 15:05:54 · 111 阅读 · 0 评论 -
JS window.showModalDialog 和 window.open 关闭之前刷新父对象 页面
JS window.showModalDialog 和 window.open 关闭之前刷新父对象 页面 1、window.showModalDialog: window.dialogArguments.window.location=window.dialogArguments.window.location; 2、window.open: opener.location.r...原创 2014-03-24 15:02:49 · 496 阅读 · 0 评论