Why jQuery does not work on my home (local) machine?

前端 未结 6 1951
失恋的感觉
失恋的感觉 2020-11-30 12:56

My question isn\'t so much about why a specific bit of jQuery I\'ve written isn\'t working as it is about no jQuery at all is working; not even working examples I\'ve copied

6条回答
  •  情话喂你
    2020-11-30 13:34

    You forgot to place the

    $('p').text('New Stuff');
    

    inside document ready for that you can do like this:

    $(function(){
       $('p').text('New Stuff');
    });
    

提交回复
热议问题