Giter Club home page Giter Club logo

Comments (9)

army8735 avatar army8735 commented on May 28, 2024

AMD中"utils"等同于CMD的"./utils"?默认这种非绝对路径是相对于当前路径?

from ranma.

chenming142 avatar chenming142 commented on May 28, 2024

对,我使用的 arale业界精选 Formatter 源码就是AMD规范的.

源码中的

define(['pattern-matcher','inpt-sel','utils'], function (patternMatcher,inptSel,utils){
}) 

对应的CMD规范应该是

define(['./pattern-matcher','./inpt-sel','./utils'], function (require, exports, module) {
    require('./XXXX');
})

from ranma.

army8735 avatar army8735 commented on May 28, 2024

0.0.9更新下试试

from ranma.

chenming142 avatar chenming142 commented on May 28, 2024

呵呵,好像只更改了 require('./XXXX') 部分,而没有更改依赖数组.
image

from ranma.

army8735 avatar army8735 commented on May 28, 2024

from ranma.

army8735 avatar army8735 commented on May 28, 2024

0.0.10

from ranma.

chenming142 avatar chenming142 commented on May 28, 2024

OK..非常感谢!关于学习homunculus感觉很无力,api太少,而且无从下手,你有什么建议么?或者有什么秘籍, 呵呵?

另: 里面demo的index.html不可访问, 奇怪的是,是用seajs.use既然都不下载依赖?

image

from ranma.

army8735 avatar army8735 commented on May 28, 2024

demo/index.html记得没用seajs……是一个老的东西。
那玩意儿太复杂,不好说……

from ranma.

chenming142 avatar chenming142 commented on May 28, 2024

哦...知道了,我吧AI.js去掉了,使用seajs就好了.但是真的好复杂呀,为什么不用 cmd-util. 原来是好久之前的啦.

from ranma.

Related Issues (3)

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.