$(function(){ $('#more1').more({'address': 'data.php'}) $('#more2').more({'address': 'data.php'})});以上为调用jquery.more.js;我的需要是#more1事件,设置data.php中的$type=1;#more2事件data.php中$type=2,怎么改?
2 回答
已采纳

qq_青枣工作室_0
TA贡献446条经验 获得超754个赞
JS里添加参数type=1或2:
$('#more1').more({'address': 'data.php?type=1'})
$('#more2').more({'address': 'data.php?type=2'})
data.php里获取type参数值:
$type = $_GET['type'];
- 2 回答
- 0 关注
- 1607 浏览
添加回答
举报
0/150
提交
取消