Comments (8)
对我也发现 引入构建好的代码不执行了
src="static/seajs/sea.js?t=20130306" data-config="hello/config.js?20130306" data-main="hello/dist/main-debug.js"
不知道是否引入构建好的 js 有没有什么特殊设置
from examples.
注意检查:
- 生成的文件是否正确;
- 文件路径有没有问题;
from examples.
貌似还是不行不知道什么原因 data-main="hello/main" 就可以 但是一旦构建过的就不行
from examples.
@wentianle 我忘记这个是seajs版本问题还是package.json问题了,你可以先参考这一个去弄:
https://github.com/Billwing/lili/tree/master/public/js
from examples.
编译弄了一下午,本来以为是自己gruntfile写的有问题,于是把hello搞下来,直接把hello/main改成hello/dist/main,果然也没跑起来。
没有运行到模块内的代码,不知道是什么原因。
from examples.
同楼上。
刚才也尝试了一下,将hello那个例子下载下来,直接将data-main="hello/main" 改为data-main="hello/dist/main" 确实无法运行。。。
看来得看seaJS源码了。。。
from examples.
@rightgenius
·关于hello
在我这边是,把data-main="hello/dist/main.js?20130306"
后面的?20130303
去掉就ok了。
·关于lucky
需要将config.js
中的jquery.easing
改为easing
,同时修改user.js
中的依赖,grunt build
之后就可以显示出效果
from examples.
已经修复了
from examples.
Related Issues (20)
- 进行到make build这步为什么提示make不是内部或外部命令 HOT 4
- 玉伯老师您好,能在例子代码里面填一下注释吗?感觉里面代码的变量命名都是谭浩强风格?. HOT 5
- jquery 的引用BUG? HOT 4
- 别名问题 HOT 1
- windows git bash怎樣運行Makefile HOT 3
- 用chrome开发者工具查看hello例子网络链接js文件的initiator为什么是sea-debug.js,没看到这个文件的网络链接,它有加载过吗。 HOT 1
- 如何将jQuery引入一个模块 HOT 5
- 开放例子中的源码 HOT 1
- 请问windows下怎么运行Makefile文件? HOT 9
- 换成新版本的backbone报错了 HOT 2
- require路径匹配不上的问题 HOT 9
- 在lukcy这个应用中使用spm build的问题 HOT 3
- 在IE11上运行不了。
- 一般的todo例子,存在bug
- 安装npm install spm-build -g失败 HOT 4
- require函数参数问题 HOT 2
- build后的代码是这样使用吗 HOT 1
- ~0.2.2 测试concat 的 relative选项已经变为include: relative HOT 1
- 'spm deploy' error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examples.