在jQuery中使用.load发送多个变量 [英] sending more than one variable with .load in jquery

查看:90
本文介绍了在jQuery中使用.load发送多个变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前我有一个变量(猫),我该如何发送另一个变量作为"CS"?

Currently i have one variable (cat) how can i send another one as "CS"?

$gallery.load('/public/themes/lbd/js/imagegallery.php', {'cat': cat}, function(){
            $(this).fadeIn(function(){
                $('a.customGal').zoomimage(); 
            });
        });

推荐答案

$gallery.load('/public/themes/lbd/js/imagegallery.php', {'cat': cat, 'CS': cs}, function(){

这只是一个常规的JavaScript对象.

It's just a regular JavaScript object.

这篇关于在jQuery中使用.load发送多个变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆