Hướng dẫn thêm thư viện Jquery vào Blogspot

Để nhúng jQuery, bạn truy cập vào Template (Mẫu blog) của bạn và nhấp vào Chỉnh sửa HTML.
Trong cửa sổ Editor, tìm thẻ
</head>
và chèn trước nó mã dưới đây:<script async='async' src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' type='text/javascript'/>
Hoặc sử dụng đoạn: <script type='text/javascript'>
//<![CDATA[
if (typeof(jQuery) == 'undefined') {document.write("<scr" + "ipt type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"></scr" + "ipt>");}
//]]>
</script>
Sau đó lưu Template.
No comments:
Post a Comment