Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道var_dumpcasper js 中的等价物是什么?
var_dump
要将任何 var 内容序列化为JSON:
var serialized = require('utils').serialize(yourVar);
直接将 JSON 序列化转储到控制台:
require('utils').dump(yourVar);