我正在使用js来更改div的内容,该div包含输入内容,我想在Ajax中使用它们,我已经使用Firefox scratchpad来调试这个函数:var div =input2).appendChild(btn);我得到的是这样的:Exception: document.createElement(...).createAttribute is not a function
我试图使用“.js”类型从外部模块文件导入一个js函数,但一直收到错误消息"ReferenceError: polygonClick is not defined“。<script src="js/map.js" type="module"></script> <body> function init