return

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

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

 

posted @ 2018-12-12 14:16  Webwhl  阅读(115)  评论(0编辑  收藏  举报