你有看我的代码么?ready 这个就是实现你说的这个过程啊:
ready: function () {
var list2 = $('#list2 option').map(function () {
return $(this).val();
}).get().join(",");
_token = "<?php echo csrf_token();?>";
$.ajax({
url: '/draw/select',
dataType: 'json',
data: {_token: _token, list2: list2},
async: false,
type: 'get',
success: function (banks) {
this.bankLists = banks;
}
});
}