新手小白求助一个问题 js

怎么用js操作 dbf和shp文件 做个简单地图图片说明

这种什么文件?js一般不是做这种的,读取客户端文件也有权限问题,你需要发布站点后服务器端处理这些文件生成字符串数据,客户端js用ajax获取数据

可以使用开源的类库解析你的数据,比如
An efficient dBase DBF file parser written in pure JavaScript
Shapefile parser
A streaming parser for the ESRI Shapefile spatial data format
A binary shapefile loader and canvas-based renderer, for javascript. Many caveats