以下 PHP 代码在 javascript 中的等价物是什么?
$img_path = "test.jpg"; // image located on my server
$args = array(
'aid' => $aid, // album id
'caption' => $img_caption, // caption for image
'uid' => $userid, // facebook user id of the poster
'format' => 'json'
);
$args[basename($img_path)] = '@' . realpath($img_path);