我想在子窗口中使用父窗口的局部变量。我使用了parent.window.opener但它返回undefined。这是我的代码:varselectedVal;$(document).ready(function(){//....//...if($(this).val()=="byActor"){$("#tags").focus();$("#tags").autocomplete({source:"actorsauto.php",minLength:2,focus:function(event,ui){event.preventDefault();returnfalse;},select: