為VisualStudio加入jQuery

Method one:

  • 在專案按右鍵選「Manage NuGet Packages for Solution…」

 

  • 搜尋「jquery」並安裝

 

  • 安裝後,可以在專案裡的「Scripts」目錄找到jQuery的js檔

 

  • 將js檔拖曳到<head></head>中間即可

 

Method Two:

  • 直接在<head></head>加入下列語法

<script type=”text/javascript” src=”http://code.jquery.com/jquery-latest.min.js”></script>

 

[Links]

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.