Google 提供 Javascript Library Hosting

公告了他們將會 hosting 幾個常用的 javascript library 讓人使用:

最簡單的方法就是把本來的程式碼:

<script type="text/javascript" src="http://static.example.com/jquery-1.2.6.min.js"></script>

改成 Google 提供的位置:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>

剛剛先把 所使用的 都更新改用 Google 提供的 hosting。

Leave a Reply

Your email address will not be published. Required fields are marked *