我想动态使用require.js。像这样的东西
$("button").click(function() {
require(["A", "B"], function(A, B) {
});
});
button.click(); // <-- first click should load A and B
button.click(); // <-- should not run while A and B have both not loaded
// A and B now loaded
button.click(); // <-- should not re-download A and B, should just re-use A and B
有谁知道怎么做? require.js中是否已支持此类内容?
由于