我想在我自己的网站上使用http://zxing.org/w/decode.jspx提供的服务和自定义表单.我写了以下代码:
<html>
<body>
<FORM action="http://zxing.org/w/decode.jspx" method="post">
<INPUT type="text" name="u" value="http://justinsomnia.org/images/qr-code-justinsomnia.png">
<INPUT type="submit" value="Send">
</FORM>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
当我提交表单时,我希望看到结果页面带有"Decode Succeeded"消息.相反,我看到我试图复制的原始远程表单.
你能发现我的自定义表格有什么问题吗?
小智 5
<html>
<body>
<FORM action="http://zxing.org/w/decode" method="get">
<INPUT type="text" name="u" value="http://justinsomnia.org/images/qr-code-justinsomnia.png">
<INPUT type="submit" value="Send">
</FORM>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
您应该使用get而不是post方法.您发布到错误的网址,发布到http://zxing.org/w/decode.我查了一下,它现在正在工作.
| 归档时间: |
|
| 查看次数: |
5668 次 |
| 最近记录: |