请帮助我使用 Dojo 创建链接,编程和声明方式我尝试了以下代码,但我无法获得输出
<script>dojoConfig = {parseOnLoad: true}</script>
<script src='dojo/dojo.js'>
require(["dojo/dom-construct", "dojo/_base/window"], function(domConstruct, win){
domConstruct.create("a", { href: "foo.html", title: "Goto FOO!", innerHTML: "link" }, dojo.body());
});