Uncaught TypeError: $ is not a function
zhanghang
zhanghang 2018-03-28 23:53:04
0
2
1786

<script type="text/javascript">

layui.use(['layer'], function(){

$ = layui.juqery;

layer = layui.layer;


## });

function dologin(){


var username = $('#username').val();

var pwd = $('#pwd').val();

var verifycode = $( '#verifycode').val();

if (username == '') {

layer.alert('Please enter username',{icon:2});

return;

}

if (pwd == '') {

layer.alert('Please enter password',{icon:2} );

return;

}

if (verifycode == '') {

layer.alert('Please enter the verification code',{ icon:2});

return;

}

}


## < ;/script>

Error report: Uncaught TypeError: $ is not a function

zhanghang
zhanghang

reply all(2)
zhanghang

Relying on already solved, wrong wording

路过

jquery was not introduced

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template