<script type="text/javascript"> var getWriEle=function(){ var scr = document.getElementsByTagName("script"); var ele = scr[scr.length-1].parentNode; return ele; }; </script>