我正在尝试从配置文件读取数据,但它始终返回空。您有什么想法在这里实现错误吗?我添加了type.d.ts:
declare module "*.json" {
const value: any;
export default value;
}
main.ts
import {CFactory} from "./local";
const config = './cacheConfig.json';
const fact = new CFactory();
const cache = fact.getObject();
cache.setConfig = config;
答案 0 :(得分:-1)
在main.ts中导入json文件
SELECT
v.sku
FROM (
SELECT
product_id, sku_id, sku, opt, val
FROM variation
WHERE product_id = 18
) v
WHERE (v.val = "10" AND v.opt = "size") OR (v.val = "10" AND v.opt = "color")
OR (v.val = "#64556d" AND v.opt = "size") OR (v.val = "#64556d" AND v.opt = "size");