Bringing in jQuery

jQuery is almost ubiquitous when it comes to JavaScript libraries, and we will use it in our application too. To add jQuery to our application, let's download the latest release from http://www.jquery.com/ and save it to public/javascript/jquery.min.js. Then, we add the script in layout.jade to pull in jQuery to our application's pages:

    script(type='text/javascript', src='/javascripts/jquery.min.js')
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset