我在使用scriptaculous的拖放库使我的沙发变得可排序上遇到了问题。
<pre id="leftcol">
<div id="id0"><h3>Date and Time</h3><div class="moduleContent"></div></div>
<div id="id14"><h3>Calculator</h3><div class="moduleContent"></div></div>
</pre>
<script type="text/javascript">
Sortable.create("leftcol", {tag:$$('div'), treeTag:$$('pre')});
</script>
当我尝试使用Safari的Web检查器进行调试时,我得到以下错误:
TypeError: Result of expression 'tagName.toUpperCase' [undefined] is not a function. dragdrop.js:932
是dragdrop.js文件中的问题还是我的代码中的问题,如果它在我的代码中,我如何修复它?谢谢。