Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求教 :虾米网,代码配置学习,??mian.js 访问403问题 #733

Open
JianyuC opened this issue Dec 1, 2015 · 3 comments
Open

Comments

@JianyuC
Copy link

JianyuC commented Dec 1, 2015

问题:初次学习KISSY,参考了虾米忘的代码,配置后;如/??mian.js 这样的访问路径,返回403,--不知道什么地方配置有问题,求教:配置文件写法如下:

! function(S) {

if (!S) return;

// 兼容魅族机型
if (navigator.userAgent.match(/MX[0-9] Build/)) {
S.UA.webkit = 100;
}

S.config({
packages: {
'xmwapp': {
//path: 'http://g.tbcdn.cn/de/music-xmwapp/1.1.5/',
path: 'http://xiami.hair8.net/kissy-mobile/gallery/music-xmwapp/1.1.5/',
//base: './kissy-mobile/gallery/music-xmwapp/1.1.5/',
tag: '201504201510',
debug: true,
ignorePackageNameInUri: true
}
}
});

S.use('node, xmwapp/main', function(S, Node, Main) {
var main = new Main();
main.init();
});

}(window.KISSY);

求教,官方的写法可以访问/??mian.js这样的写法可以--,我自己写就不行,求指点,万分感谢

@JianyuC
Copy link
Author

JianyuC commented Dec 1, 2015

如果不开启:data-config="{combine:true}" 这个,本地的访问路径是正确的?

@nanqiu
Copy link

nanqiu commented Dec 2, 2015

您的服务器不支持 combo 功能吧

@JianyuC
Copy link
Author

JianyuC commented Dec 2, 2015

--求教 服务器支持 combo 需要什么特殊的配置 或者设置吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants