node.js - 定义全局变量

1,定义全局变量 

app.set('name','八戒') 

 

2,获取全局变量

app.get('name')

posted @ 2019-10-06 20:54  武卡卡  阅读(2029)  评论(0编辑  收藏  举报