【发布时间】:2016-11-10 08:42:15
【问题描述】:
我需要发帖到这个网址
https://liceoeuroamericano.territorio.la/webservices/persona.php
我需要发布 2 个不同的参数
- 方法
-
参数
method=activateUser param { "auth_key": "123456", "user": "[email]", "active":"[0/1]" } string(JSON)
我尝试了什么 - 我做对了吗?
<button id="activateUser">GO</button>
<script>
$('#activateUser').on('click', function(){
$.post('https://liceoeuroamericano.territorio.la/webservices/persona.php',
{
method=activateUser¶ms={
"auth_key": "123456",
"user": "[email]",
"active":"[0/1]"
}
string(JSON)
}, function(data){
})
});
</script>
【问题讨论】:
-
{method=...}?这甚至不是有效的javascript。 -
检查你的控制台,它会帮助你!
标签: php jquery ajax post parameters