php页面加这段,选择框读取数据库时就不刷新了,相当ajax

2022-10-11 20:47:31 204
魁首哥

$(document).ready(function() {

$(‘#submit’).on(‘click’, function() {

var url = ‘new.php’; // the page containing Hotel list only

$(‘#div-hotel-list’).load(url); // the div in the main page where hotel list should be displayed.

});

});

分享
海报
204
上一篇:福建省农村居民养老金标准(厦门退休金最低标准能拿多少钱) 下一篇:【新手玩转云计算】搭建PHPWind论坛

忘记密码?

图形验证码