Wei,Please try this:http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/arcgisdynamicmapservic...