一个简单的我无法找到
的答案这是正确的方法吗?
Jquery / Javascript
var result = result.text;
var users = localStorage.getItem('user');
$.ajax({
url:'******',
method: 'POST',
data: {user: users, serial: result},
dataType: "text",
contentType: "application/json",
success: function(data){
PHP-:
$u1 = ($_POST['user']);
$duid = ($_POST['serial']);