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

require加载模板文件 返回undefined #20

Open
Litor opened this issue Jan 15, 2015 · 2 comments
Open

require加载模板文件 返回undefined #20

Litor opened this issue Jan 15, 2015 · 2 comments

Comments

@Litor
Copy link

Litor commented Jan 15, 2015

seajs和seajs-text使用的都是github中dist的稳定版
define(function(require, exports, module){
var t = require("./hello.tpl");
var test2 = require("test2");
console.log(t)
console.log(test2)
});

test2 模块可以正确加载返回
hello.tpl 文件以及正确请求到浏览器了,但是t为什么为undefined的呢

@army8735
Copy link
Member

传个demo看看

@boboxiao
Copy link

一直返回undefined,连加载模板的请求都没有!

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

3 participants