如何通过Javascript脚本请求PHP页面并将数据传递给它?然后,如何让PHP脚本将数据传递回Java脚本?
client.js:
data = {tohex: 4919, sum: [1, 3, 5]};
// how would this script pass data to server.php and access the response?
server.php:
$tohex = ... ; // How would this be set to data.tohex?
$sum = ...; // How would this be set to data.sum?
// How would this be sent to client.js?
array(base_convert($tohex, 16), array_sum($sum))
至尊宝的传说
慕村225694