Loading jquery from google doesn't work (for me)

前端 未结 6 634
盖世英雄少女心
盖世英雄少女心 2021-01-16 20:25

Ah the wretched noob I am, the following html document doesn\'t alert anyone of my cry for help. Anyone know why?





        
6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-16 21:28

    Possible values for the Src Attribute are

    •An absolute URL - points to another web site (like src="http://www.example.com/example.js") •A relative URL - points to a file within a web site (like src="/scripts/example.js")

    So you should have your URL as http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js

提交回复
热议问题