Rumah > Soal Jawab > teks badan
<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('Sila masukkan nama pengguna',{icon:2});
return;
}
jika (pwd == '') {
layer.alert('Sila masukkan kata laluan',{ikon:2});
kembali;
}
jika (kod pengesahan == '') {
layer.alert('Sila masukkan kod pengesahan',{ikon:2});
kembali;
}
}
</script>:Urror bukan fungsi