<!DOCTYPE html><html><head><script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script></head><body><script type="text/javascript">function preview(){ temp = $(this).innerHTML; testwin= open("", "testwin","status=no,menubar=yes,toolbar=no"); testwin.document.open(); testwin.document.write(temp); testwin.document.close(); }</script><table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped"> <tbody> <tr> <td onclick="preview()">dghfh</td> </tr> </tbody> </table></html>
$(this).innerHTML取出的是undefined,為什么
SMILET
2018-11-14 14:15:30