<script type="text/javascript"> how to get the object of this script element </script>在javascript代码中怎么取得当前代码所在的script元素对象? 查看完整描述
<script type="text/javascript"> var scripts = document.getElementsByTagName('script'); var current = scripts[scripts.length-1];</script>