使用javascript jQuery.post()打开窗口

使用javascript jQuery.post()打开窗口,javascript,facebook,jquery,Javascript,Facebook,Jquery,为了实现facebook邀请自动化,我需要发布特定数据,以便facebook好友选择将打开。 我将在已打开的事件上使用此脚本。 我想我只是没有得到post()方法,或者它没有按照我想要的方式使用。 我正在尝试直接从浏览器运行以下方法: javascript:$.post('/events/create.php',{/ajax/choose/?键入:'event'eid:'someeventid'send_invests_on_close:'1'}) 或: javascript:$.post('/

为了实现facebook邀请自动化,我需要发布特定数据,以便facebook好友选择将打开。 我将在已打开的事件上使用此脚本。 我想我只是没有得到post()方法,或者它没有按照我想要的方式使用。 我正在尝试直接从浏览器运行以下方法:

javascript:$.post('/events/create.php',{/ajax/choose/?键入:'event'eid:'someeventid'send_invests_on_close:'1'})

或:

javascript:$.post('/events/create.php?eid=someeventid',{/ajax/choose/?键入:“event”eid:“someeventid”send_invests_on_close:'1})

有什么想法吗

谢谢

编辑:

帖子后面的html是:


将参数格式化为JQuery post的方式如下(您很接近,但需要逗号来分隔参数):


(注:未经测试也不确定您的第一个参数是否合法-不确定其中的特殊字符)

将参数格式化到JQuery post的方式如下(您很接近,但需要逗号来分隔参数):

(注:未经测试也不确定您的第一个参数是否合法-不确定其中的特殊字符)

html是:
以上参数不起作用,我猜参数是错误的。html是:
以上参数不起作用,我猜参数是错误的。
$.post("/events/create.php", { /ajax/choose/?type: 'event', eid: 'someeventid', send_invites_on_close: '1' });