ການກວດສອບເບິ່ງວ່າ JQuery ໄດ້ຖືກເອີ້ນມາເຮັດວຽກບໍ

ການກວດສອບເບິ່ງວ່າ JQuery ໄດ້ຖືກເອີ້ນມາເຮັດວຽກບໍໂດຍການຂຽນຄຳສັ່ງ php ດັ່ງນີ້

<script>
if (typeof jQuery != 'undefined') {
     alert("jQuery library is loaded!");
}else{
     alert("jQuery library is not found!");
}
</script>

ເຊິງ undefined ໝາຍເຖິງ JQuery ບໍ່ໄດ້ເຮັດວຽກ

Leave a comment