我有上传表格:
<form enctype="multipart/form-data" action="uploader/" method="POST">
<input type="hidden" name="type" value="A">
<br>
Choose a file to upload: <input name="uploadedfileInput" type="file" /><input type="submit" value="Upload File" /><img src="/invite/images/Input.gif" style="margin-left: 140px">
</form>
你可以看到我通过value="A"
我怎样才能代替"A"
一些返回值的函数?
就像是:
<input type="hidden" name="type" value="getSomeValue()">
JS
...
function getSomeValue(){
return localStorage['some Data'];
}
...
谢谢你的帮助,