Skip to content

summer.writeConfig

quhbc edited this page Jan 6, 2017 · 1 revision

summer.writeConfig()

与服务器服务处理,写配置文件

语法

summer.writeConfig({
	"host" : "10.2.112.58", //向configure中写入host键值
	"ip" : "8080"//向configure中写入ip键值
})

参数:

  • host:host键值
  • ip: ip键值

示例代码:

summer.writeConfig({
	"host" : "10.2.112.58",
	"ip" : "8080"
})

Clone this wiki locally