如何使用jquery$.get()传递字符串参数

如何使用jquery$.get()传递字符串参数,jquery,parameters,Jquery,Parameters,我是jquery的新手,在下面的调用中修改某人的代码以发送字符串参数。我不确定如何传递字符串参数-myarray,其中myarray=(111122223333)。我在没有引号的情况下尝试过它,~(myarray)也不起作用。请帮忙 $j.get("modhelper.html", "id="myarray"&dcid=~[tlist_sql;select dcid from customers where id = ~(curid);]~(dcid)[/tlist_sql]&t

我是jquery的新手,在下面的调用中修改某人的代码以发送字符串参数。我不确定如何传递字符串参数-myarray,其中myarray=(111122223333)。我在没有引号的情况下尝试过它,~(myarray)也不起作用。请帮忙

$j.get("modhelper.html", "id="myarray"&dcid=~[tlist_sql;select dcid from customers where id = ~(curid);]~(dcid)[/tlist_sql]&transdate="+$j(this).val(), function(data)

一种方法是使用具有键值对的对象作为.get()方法的第二个属性


我想这是阿贾克斯。。也许你可以给出剩下的代码。。?
$j.get('modhelper.html', {
        id: 'myarray',
        dcid: '~~[tlist_sql;select dcid from customers where id = ~(curid);]~(dcid)[/tlist_sql]',
        transdate: $j(this).val()
    },
    function(data){
        //console.log(data);
    }
);