为什么会显示url_没定义,路径都可以访问的 if (B == "ASSEMBLE") { url_ = "http://10.11.0.137:8080/webroot/decision/view/report?viewlet=b2b%252FDTFL-MTK%252FDTFL-MTK%25E5%25AD%2590%25E8%25A1%25A8%252FCONFIRM_ASSEMBLE.cpt&ref_t=design&ref_c=85c44fe8-926c-43b9-8e29-b5fba5450464&TRANSACTIONID=" + A;} else if (B == "START") { url_ = "http://10.11.0.137:8080/webroot/decision/view/report?viewlet=b2b%252FDTFL-MTK%252FDTFL-MTK%25E5%25AD%2590%25E8%25A1%25A8%252FCONFIRM_START.cpt&ref_t=design&ref_c=85c44fe8-926c-43b9-8e29-b5fba5450464&TRANSACTIONID=" + A;} else if (B == "RECEIVE") { url_ = "http://10.11.0.137:8080/webroot/decision/view/report?viewlet=b2b%252FDTFL-MTK%252FDTFL-MTK%25E5%25AD%2590%25E8%25A1%25A8%252FCONFIRM_RECEIVE.cpt&ref_t=design&ref_c=85c44fe8-926c-43b9-8e29-b5fba5450464&TRANSACTIONID=" + A;} else if (B == "COMPLERE") { url_ = "http://10.11.0.137:8080/webroot/decision/view/report?viewlet=b2b%252FDTFL-MTK%252FDTFL-MTK%25E5%25AD%2590%25E8%25A1%25A8%252FCONFIRM_COMPLETE.cpt&ref_t=design&ref_c=85c44fe8-926c-43b9-8e29-b5fba5450464&TRANSACTIONID=" + A;}var iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='yes' framedorder='0'>");// 对话框内 iframe 参数的命名,默认宽高占比是 100%,可向下滚动iframe.attr("src", url_);// 给 iframe 添加 src 属性var o = { width: 700, //对话框宽度 height: 500 //对话框高度};FR.showDialog("添加", o.width, o.height, iframe, o); //弹出对话框