本文介绍了从PopUp中检索值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! Hello all 我打开一个接收两个变量(值)的PopUp。这个PopUp也必须返回 a值。 如何检索这个值? 非常感谢。Hello allI open a PopUp that receives two variables (values). This PopUp must returna value as well.How can I retrieve this value?Thanks a lot.推荐答案 一种可能性是使用JavaScript开启者窗口中的属性 对象调用方法。 示例(在弹出窗口中): if (self.opener && self.opener.setValues) { self.opener.setValues(value1,value2); } HTH, Laurent - Laurent Bugnion,GalaSoft 软件工程: http://www.galasoft -LB.ch 私人/马来西亚: http: //mypage.bluewin.ch/lbugnion 支持加尔各答的儿童: http://www.calcutta-espoir.chOne possibility is to use the JavaScript "opener" property in the Windowobject to call a method.Example (in the popup):if ( self.opener&& self.opener.setValues ){self.opener.setValues( value1, value2 );}HTH,Laurent--Laurent Bugnion, GalaSoftSoftware engineering: http://www.galasoft-LB.chPrivate/Malaysia: http://mypage.bluewin.ch/lbugnionSupport children in Calcutta: http://www.calcutta-espoir.ch 这篇关于从PopUp中检索值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-23 21:45