How to add jQuery code into HTML Page

前端 未结 6 1618
天涯浪人
天涯浪人 2020-12-05 09:51

$(\".icon-bg\")         


        
6条回答
  •  被撕碎了的回忆
    2020-12-05 10:25

    1. Create a file for the jquery eg uploadfuntion.js.
    2. Save that file in the same folder as website or in subfolder.
    3. In head section of your html page paste:

    and then the reference to your script eg:

    4.Lastly you should ensure there are elements that match the selectors in the code.

提交回复
热议问题