常用超图SQL语句
select...from..(dataset)where...(condition)
where in..(针对某列的多个可能值)
select distinct(返回唯一不同值)
where...like...
- %表多个字符,_表一个字符
- M%匹配以M开头的...
- %M%匹配包含M的所有字符
- %M_匹配M位于倒数第二位的所有字符
RequireJS
- require.config() 常写入main.js 其中 shim:{name:{exports:"name"}}
- define(name,[neededpath],function(){})
- require([])
Promise Ajax
- Cesium.when(promise,function(){})
- promise(sth).then((layers)=>{})
$.ajax({
type: "POST",
url: "js/func/urls.json",
async: true,
dataType: "json",
success: function (result) {
if (result) {
console.log("ajax读取完成")
}
}
})
参考:[https://blog.csdn.net/weixin_42997826/article/details/82713614]
knockout
- 定义viewModel
- 绑定DOM 监视viewModel eg:Cesium.knockout.track(viewModel)
- Cesium.knockout.applyBindings(viewModel,DOM)
- Cesium.knockout.getObserable