jQuery: Cách code PHP trong jQuery
Giả sử bạn cần lấy thông tin về Session để xử lý jQuery, bạn có thể làm như sau:
var
connection = '<?=
Session::get('connection')?>';
alert(connection);
Giả sử bạn cần lấy thông tin về Session để xử lý jQuery, bạn có thể làm như sau:
var
connection = '<?=
Session::get('connection')?>';
alert(connection);