CodeIgniter and Javascript/Jquery Library

前端 未结 9 854
粉色の甜心
粉色の甜心 2021-02-12 11:51

As title said, I\'m trying to figure out how to use javascript and jquery libraries on CI.

Following instruction in the docs, I load the library in my controller:

9条回答
  •  抹茶落季
    2021-02-12 12:11

    It is important to note that this Driver is marked as experimental so I wouldn't rely on it.

    Also, personally I think it's asking for confusion and headaches to try and directly mix server-side portions of your applications with client side portions.

    To use javascript in your views, I would just start out by loading them like this...

    
    

提交回复
热议问题