请问seajs怎样引进非CMD的框架?
试过jQuery可以直接在源代码上套一层define([],function(){ })来解决问题。但zepto即使在zepto的源代码上套一层define([],function(){ }),引进来后也…
Sea.js引入Vue插件问题
在seajs中引入Vue-resource插件,无法使用,这是为什么呢? define(function(require, exports, module) { require('vue'); require('vue-resource')…
karma怎么测试seajs模块
这篇文章有讲到 seajs 配置,说是要重写 karma.start 方法 var _fn = window.__karma__.start window.__karma__.start = function() { seajs.use([".…
我用JQ的load方法,加载包含seajs.use()的页面,为什么只能成功加载一次?
我用JQ的load方法,加载包含seajs.use()的页面,为什么只能成功加载一次? 主页面的菜单,点击,load()内容页,内容页末尾是一个seajs.use()的引用。…
seajs的一个加载问题
define('manage/user/index',function(require, exports, module){ var Ajax = require('lib/ajax'), pageIndex = 0; require('./mods/tableTpl.js')…
angular配合seajs,如何进行临时加载并编译?
有这么一个想法,页面上有登录的按钮,但页面上没有登录这个插件的DOM。现在想用seajs配合angular,当点击登录按钮时,临时使用seajs调用登录插件的h…
seajs jQuery报错$ is not defined
在正确加载了seajs,jQuery的情况下,抛出 $ is not defined index.html seajs.config({ base: "../libs/", alias: { "jquery": "jquery.js" } }) //…
seajs-text加载HTML文件为什么会加载出.js后缀
我用sea.js加载模块化html文件的时候加载出来的连接是before.html.js 如何加载出before.html define(function(require,exports,module) { //引入jQue…
angular中怎样使动态添加的内容也可以正常被编译,添加控制器?
大概思路是这样的,一个商城,它的登陆是按需加载的,登陆后本页不动,局部内容刷新。 点击那个登陆,然后使用$.ajax向后台php请求插件'login',php…
sea.js如何导出这样的构造函数?
sea.js如何module.exports这样的构造函数: var Alltype; function Dialog(type) { this.type = type || {}; } Dialog.portotype.init = fuction() {…