PHP 代码:

 $fileName,
  'type' => $fileType,
  'dataUrl' => $dataUrl,
  'username' => $_REQUEST['username'],
  'accountnum' => $_REQUEST['accountnum']
));

echo $json;
?>

Html 及 JS 代码







xhr.send(FormData) Example