const btn = document.getElementById("btn"); btn.addEventListener("click",function(){ view .whenLayerView(csvLayer) .then(function(csvLayerView) { csvLayerView.effect = { filter: { where: "",//填写查询信息 }, excludedEffect: "blur(5px) grayscale(90%) opacity(40%)" }; }) })