对对
function queryBySQL() { // 设置关联的外部数据库信息,alias表示数据库别名 var dc = new SuperMap.REST.DatasourceConnectionInfo({ dataBase: "RelQuery", server: "192.168.168.39", user: "sa", password: "map", driver: "SQL Server", connect: true, OpenLinkTable: false, alias: "RelQuery", engineType: SuperMap.REST.EngineType.SQLPLUS, readOnly: false, exclusive: false });
DatasourceConnectionInfo这里面的信息,不想暴露在外边