We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Moodle的AJAX是通过YUI 3实现的。基本策略是:
Moodle关于使用YUI的文档比较少,但有很多实际的代码做例子,值得参考。
M.mod_xxxx.init
$PAGE->requires->js_init_call('M.mod_xxxx.init');
$PAGE->requires->string_for_js('stringid', 'component', $a);
console.log(YAHOO.lang.dump(var));