我想将值表单弹出视图传递给父视图如何使用 Backbone JS
我完成了这样的代码
用于弹出视图
loadPopupGeoBox: function () {
var newUserlist = new TripsdetailsModel();
selectModel = newUserlist;
var that = this;
require(['views/searchlocationek'], function (view) {
var view = new view({ model: selectModel});
view.open();
that.addview = view;
});
$('#popup_geocode').fadeIn("slow");
$("#container").css({
"opacity": "0.3"
});
},
从弹出页面提交按钮我们完成了以下代码
clickClose: function() {
require(['views/trip'], function (view) {
var view1 = new view();
view1.openfilter(final);
});
$('#popup_geocode').fadeOut("slow");
$("#container").css({ // this is just for style
"opacity": "1"
});
},
如何在父视图中获取“最终”的值?