每日一弹:模块化 2018-01-11 本文已影响0人 醉虾不醉 1. import 变量名 from path 1 2. require(path) 1 3. JSON.stringify(json,fn,2) 参数一:json对象 参数二:过滤值的数组 参数三:控制对象每级数据的格式缩进