TypeError: $(…). is not a function

前端 未结 4 1767
旧时难觅i
旧时难觅i 2021-01-13 10:05

I\'m trying to track down an error TypeError: $(...).clientSideCaptcha is not a function at RegisterCapcha (http://localhost:4382/xxx/index.html:98:31)

4条回答
  •  抹茶落季
    2021-01-13 10:11

    For use Jquery plug-in (library) you need to import Jquery first.

    The better way is import all scripts at the end of your HTML.

    Take care of the order (Jquery first).

    Example of Jquery import (online version).

    
    

    For some reason you don't want import script at the end, don't forget :

    $(document).ready(function(){//code});
    

    Some plug-in need HTML to be loaded before use them. So the script begins to end.

提交回复
热议问题