function show_layer(){ layer.open({ type: 2, area: [w+'px', h +'px'], fix: false, //不固定 maxmin: true, shadeClose: true, shade:0.4, title: title, content...
layer.open({ type: 2, title: '编辑音乐', shadeClose: false, shade: 0.8, btnAlign: 'c', area: ['480px', '315px'], btn:['保存修改','取消修改'], yes:function(index,lay...
今天做项目遇到,跨域登录问题,发现登录成功后session无法使用,怎么也无法获取到,然后查阅资料中越解决了这个问题 解决这个问题之前先看一下 这个 首先因为是跨域登录,要保证服务器允许跨域请求,在服务器做如下设置: app.all('*',function (req, res, next) { res...
只有在 require() 时才使用相对路径(./, ../) 的写法,其他地方一律使用绝对路径,如下: // 当前目录下 path.dirname(__filename) + ‘/test.js’; // 相邻目录下 path.resolve(__dirname, ‘../lib/common.js’);