在jquery中使用.load发送多个变量

时间:2010-12-02 14:06:01

标签: jquery

目前我有一个变量(cat)如何将另一个变量发送为“CS”?

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

2 个答案:

答案 0 :(得分:2)

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

它只是一个常规的JavaScript对象。

答案 1 :(得分:1)

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