<meta HTTP - equiv="content-type" content="text/HTML. Charset=utf-8 "/& gt;
<link rel="stylesheet" type="text/CSS" href="http://localhost/css/arcgis_js_api/library/4.4/jsapi/js/dojo/dijit/themes/tundra/tundra.css"/& gt;
<link rel="stylesheet" type="text/CSS" href="http://localhost/arcgis_js_api/library/4.4/jsapi/js/esri/css/esri.css"/& gt;
<style type="text/CSS" & gt;
. MapClass
{width: 900 px;
height:600px;
border:1px solid #000;
}
</style>
Dojo. AddOnLoad (function ()
{
Var MyMap=new esri Map (" MyMapDiv ");
Var MyTiledMapServiceLayer=new esri. The layers. ArcGISTiledMapServiceLayer (" http://www.arcgisonline.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer ");
MyMap. AddLayer (MyTiledMapServiceLayer)
}
)
</script>
<body & gt;