自动循环提交js
<script type="text/javascript"> (function poll() { console.log("i work") $.ajax({ type: 'POST', url: '/api/Home/ChangeOpenId', dataType: "json", timeout: 30000, complete: function (data) { if (data == 'True') { console.log("True") } else{ console.log("False") poll() } }, }); })(); </script>