Giter Club home page Giter Club logo

Comments (5)

leoner avatar leoner commented on July 18, 2024

几个define是由于文件合并。
然后require这个问题,和下面这个一样,如果use合并后的模块,需要use模块id.

https://github.com/seajs/spm/issues/242#issuecomment-8218594

from switchable.

afc163 avatar afc163 commented on July 18, 2024

上面这个例子中的test/1.0.0/a,是指文件路径呢?还是模块id?

现在我要require switchable的dist里的switchable.js文件,package.json应该怎么写?

from switchable.

leoner avatar leoner commented on July 18, 2024

test/1.0.0/a 有是路径,又是id, id和路径是对应的。

目前require dist里面的文件,应该是需要seajs.config 中的map的,把请求的路径映射到dist下面的文件.

from switchable.

niuliwei avatar niuliwei commented on July 18, 2024

访问 http://aralejs.org/switchable/examples/ 链接
报错:TypeError: this.dataset is undefined

var role = this.dataset.role;

from switchable.

leoner avatar leoner commented on July 18, 2024

@niuliwei 已经解决!

from switchable.

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.