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
Relying on already solved, wrong wording
jquery was not introduced