<script>
? ?$(function(){
? ? ?$("#login").on('??',function(???){
? ?? ? ? ?$.ajax ({
? ? ? ? ? ? ? ???:"POST",
? ? ? ? ? ? ? ?url:"{:url('checkLogin')}",//地址
? ? ? ? ? ? ? ?data:$("form").serialize(),
? ? ? ? ? ?? ?dataType:"json",
? ? ? ? ? ? ? ??? :??(???){
? ? ? ? ? ? ? ? ? ?if(data.$status === 1){
? ? ? ? ? ? ? ? ? ? ? ?window.location.href="{:url('index/index')}"
? ? ? ? ? ? ? ? ? ?}else{
? ? ? ? ? ? ? ? ? ? ? ?console.log(data. $???)
? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ?}
? ? ? ? ? ?})
? ? ? ?})
? ?})
</script>