使用Webshim在Safari 6上进行html5表单字段验证错误

时间:2013-06-21 04:37:04

标签: html5 webshim

使用Webshim后,必需属性在Safari中无效。我一直收到错误{“错误”:“请使用POST请求”}。enter link description here

    <!doctype html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <script src="js/jquery-1.10.1.js"></script>
        <script src="js/modernizr-custom.js"></script>
        <script src="js/polyfiller.js"></script>
        <script>jQuery.webshims.polyfill('forms');</script>

    </head>
    <body>
        <form>
            <input type="text" required value="" />
            <input type="submit" value="Submit" />
        </form>
    </body>
    </html>

0 个答案:

没有答案