在做移动端应用时经常用到百度地图API,百度API有强大的示例和文档,开发之前去百度相关网站注册密钥,很块博主只花了几分钟 百度地图API范例 百度地图API文档说明 例子1:输入特定关键字绘制地图标识结果: 先实例化需要的类 // 创建Map实例 var map = new BMap.Map("l-map"); var localSearch = new BMap.LocalSearch(map); 注册事件 $("#btnSearch").click(funct…
一.RESTful和Web API Representational State Transfer (REST) is a software architecture style consisting of guidelines and best practices for creating scalable web services. REST is a coordinated set of constraints applied to the design of components in…