この記事では、Chromeブラウザで定義されていないJSのリターン値の解決策について説明します。次のように、参照のために共有してください。
メインページ:
<script type = "text/javascript"> function selectgroupcust(){var temp = window.showmodaldialog( "default2.aspx?xx =" + date()、 ""、 "dialogwidth = 800px; dialogheight = 600px; help = no; center = yes;"); // chrome if(temp = undefined){temp = window.returnvalue; } alert(temp); true;} </script>を返します詳細ページ:
<スクリプト言語= "javascript" type = "text/javascript"> function returnaddresssee(){if(window.opener!= undefined){window.opener.returnvalue = "1"; } else {window.returnvalue = "2"; } window.close();} </script>JavaScript関連のコンテンツの詳細については、このサイトのトピックをご覧ください:「JavaScriptエラーとデバッグスキルの要約」、「JavaScriptの数学的操作の使用の概要」、「JavascriptのJSON操作スキルの要約」、「Javascript Switching Special Effects and Skillsの要約」、Javascript Search algorithm section "summation" summation "summation" sumprice "sumprice" sumprict algorithm algorithm algorithm algorithmのスキルの概要スキル」、「JavaScriptデータ構造とアルゴリズムスキルの要約」および「JavaScriptトラバーサルアルゴリズムとスキルの概要」
この記事がみんなのJavaScriptプログラミングに役立つことを願っています。