const statusStyle = function(){
if (uni.getSystemInfoSync().platform == "ios") {
var UITraitCollection = plus.ios.importClass("UITraitCollection");
let a=UITraitCollection.currentTraitCollection;
return a().userInterfaceStyle()==1?'light':'dark';
}
return 'light';
}
写了段njs 判断下是否是深色模式