Comments (9)
AMD中"utils"等同于CMD的"./utils"?默认这种非绝对路径是相对于当前路径?
from ranma.
对,我使用的 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.
0.0.9更新下试试
from ranma.
呵呵,好像只更改了 require('./XXXX') 部分,而没有更改依赖数组
.
from ranma.
囧
from ranma.
0.0.10
from ranma.
OK..非常感谢!关于学习homunculus
感觉很无力,api太少,而且无从下手,你有什么建议么?或者有什么秘籍, 呵呵?
另: 里面demo的index.html不可访问, 奇怪的是,是用seajs.use既然都不下载依赖?
from ranma.
demo/index.html记得没用seajs……是一个老的东西。
那玩意儿太复杂,不好说……
from ranma.
哦...知道了,我吧AI.js去掉了,使用seajs就好了.但是真的好复杂呀,为什么不用 cmd-util. 原来是好久之前的啦.
from ranma.
Related Issues (3)
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 ranma.