Si tenemos una pagina web, por ejemplo miPagina.html
<html>
<head>
<meta charset="utf-8">
<title>Mi pagina web</title>
</head>
<body>
<h1>Hello</h1>
</body>
</html>
y queremos utilizar Dojo ToolKit en ella , tenemos dos formas de hacerlo:
1) Utilizando un CDN
No es la intencion del post explicar que es un CDN, pero un CDN seria algo asi como un servidor donde se alojan diversos contenidos.
Podemos encontrar Dojo en dos CDN:
a) Google CDN
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.7.1/dojo/dojo.js" type="text/javascript"></script>
b) Yandex CDN
<script src="http://yandex.st/dojo/1.7.1/dojo/dojo.js" type="text/javascript"></script>
No hay comentarios:
Publicar un comentario