requirejs
Using the Backbone.js router to navigate through views modularized with require.js
I am separating my views and router into separate files with require. I then have a main.js file that instantiates the router, and also renders my default view.[详细]
2023-04-12 15:15 分类:问答jQuery as AMD module and optimizing with r.js
Allright, he is the thing. I am using curl.js for my AMD loader, but i don\'t like much of \"cram\" because it needs to be run on unix and i am developing on Windows. So the r.js adapter for nodeJS fr[详细]
2023-04-10 05:38 分类:问答Options for communicating between Chrome Extension and Embedding Page's Javascript
I am monitoring browser events such as when a new tab is created. My extension needs to display these browser events in the new tab page.[详细]
2023-04-09 12:35 分类:问答How to load Underscore library with RequireJS?
require([\'underscore\'], function ($, _) { ... }); Doesnt work! (_ is not a function) How to ma开发者_StackOverflownage it?Note that underscore.js doesn\'t register itself as an AMD module (though[详细]
2023-04-06 23:52 分类:问答requireJs order plugin: can it exist in a different path than the require.js basePath?
when using the order plugin require.js looks for it inthe given basePath/order.js example: require( { baseUrl: \'/public/js/\'[详细]
2023-04-03 15:43 分类:问答How can I test client side coffeescript/js using node with expresso/jasmine/<other>
I have a web app where the client side stuff is written with coffeescript and loaded with require.js.[详细]
2023-03-28 05:51 分类:问答Loading jquery.jstree.js using requireJS doens't work in IE
Loading jquery.jstree.js using requireJS doens\'t work in IE. When I try to load the JSTree plugin (jquery.jstree.js) using requireJS it fails in IE8 with follwing JS error.[详细]
2023-03-25 12:51 分类:问答Google async tracker logs new visit every "page view"
On a single page webapp, I\'ve implemented the google async tracker. I created a class to be able to make some simple calls to be able to track users across the site:[详细]
2023-03-15 02:14 分类:问答requirejs plugin loads module in fresh context
I want to have a module load multiple times on a page, with a unique context for 开发者_Go百科each instance.There are two normal ways to do this.[详细]
2023-03-12 01:48 分类:问答RequireJS and Headless Test-Driven Development
I\'m looking to use RequireJS for my next big JS project however I am having a hard time figuring out how to test for it in a headless testing environment. I\'m new to both RequireJS and the test-driv[详细]
2023-03-10 01:40 分类:问答