Code Monkey home page Code Monkey logo

Comments (8)

wentianle avatar wentianle commented on July 17, 2024

对我也发现 引入构建好的代码不执行了
src="static/seajs/sea.js?t=20130306" data-config="hello/config.js?20130306" data-main="hello/dist/main-debug.js"

不知道是否引入构建好的 js 有没有什么特殊设置

from examples.

billwing avatar billwing commented on July 17, 2024

注意检查:

  1. 生成的文件是否正确;
  2. 文件路径有没有问题;

from examples.

wentianle avatar wentianle commented on July 17, 2024

貌似还是不行不知道什么原因 data-main="hello/main" 就可以 但是一旦构建过的就不行

from examples.

billwing avatar billwing commented on July 17, 2024

@wentianle 我忘记这个是seajs版本问题还是package.json问题了,你可以先参考这一个去弄:
https://github.com/Billwing/lili/tree/master/public/js

from examples.

rightgenius avatar rightgenius commented on July 17, 2024

编译弄了一下午,本来以为是自己gruntfile写的有问题,于是把hello搞下来,直接把hello/main改成hello/dist/main,果然也没跑起来。

没有运行到模块内的代码,不知道是什么原因。

from examples.

alvinhui avatar alvinhui commented on July 17, 2024

同楼上。
刚才也尝试了一下,将hello那个例子下载下来,直接将data-main="hello/main" 改为data-main="hello/dist/main" 确实无法运行。。。

看来得看seaJS源码了。。。

from examples.

dYb avatar dYb commented on July 17, 2024

@rightgenius
·关于hello
在我这边是,把data-main="hello/dist/main.js?20130306" 后面的?20130303去掉就ok了。
·关于lucky
需要将config.js中的jquery.easing改为easing,同时修改user.js中的依赖,grunt build之后就可以显示出效果

from examples.

lifesinger avatar lifesinger commented on July 17, 2024

已经修复了

from examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.