     ///   - specialAreas: 可选。将地图中的部分区域缩放到合适的位置，可以使得整个地图的显示更加好看
     public func registerMap(name: String, data: NSDictionary, specialAreas: [String: Jsonable] = [:]) {
         let dataJson = data.jsonString
-        let js = "registerMap('\(name)', '\(dataJson.stringByReplacingOccurrencesOfString("\\n", withString: "<br>"))', '\(specialAreas.jsonString)')"
-        self.callJsMethod(js.stringByReplacingOccurrencesOfString("\n", withString: "\\n"))
+        self.callJsMethod("registerMap(\("'\(name)', '\(preDealWithParams(dataJson))', '\(specialAreas.jsonString)'"))")
     }
     
     /// 重置图表

    }
    
    private func callJsMethod(jsString: String) {
        self.evaluateJavaScript(jsString, completionHandler: nil)
    }
    
    private func resizeDiv() {

            //            self.callJsMethod("function \(name)(params){ alert(\(name));eval('window.webkit.messageHandlers.\(name).postMessage(' + params + ')'); }")
        }
        
        self.callJsMethod("refreshEcharts('\(preDealWithParams("\(optionJson)"))', \(notMerge), \(lazyUpdate), \(silent))")
    }
    
    // MARK: - Private Functions
