Rumah >pembangunan bahagian belakang >tutorial php >angularjs post 提交中文乱码?
html:
<code><div ng-controller="login_input"> <form ng-submit="check_login()"> <div><a>用户名:</a></div> <div><input type="text" required ng-model="login.uname"></div> <div><a>密码:</a></div> <div><input type="password" required ng-model="login.upassword"></div> <div><a>验证码:</a></div> <div> <input type="number" min="0" required ng-model="login.chkcode"><img src="img.php" alt="angularjs post 提交中文乱码?" > </div> {{login}} <button class="a_button" type="submit">登录</button> </form> </div> </code>