return

function json(){
  return {
    name :"whl",
    age :30
    }
}

console.log(json())   //结果{name: "whl", age: 30}

原文地址:https://www.cnblogs.com/whlBooK/p/10108064.html