使用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>