Phantomjs 如何在casperjs上创建配置文件

Phantomjs 如何在casperjs上创建配置文件,phantomjs,casperjs,Phantomjs,Casperjs,如何创建当移动到另一个DSL时可以编辑的config.json文件 我想实现该conf文件的url、用户名和密码只需将其命名为config.js并使用: var config = require('./config'); 在config.js中: module.exports = { .... } DSL是什么意思?

如何创建当移动到另一个DSL时可以编辑的config.json文件


我想实现该conf文件的url、用户名和密码

只需将其命名为config.js并使用:

var config = require('./config');
在config.js中:

module.exports = {
    ....
}
DSL是什么意思?