源码下载:https://files.cnblogs.com/files/heyang78/BasicInterpreter2-20200601-2.rar 用编程语言打印九九乘法表不难,用自编解释器运行自编脚本打印九九乘法表难度就多了那么一丢丢.本例就是讲述我编的这个程序: 输入脚本: for x= to for y= to x z=x*y print(x) print("*") print(y) print("=") print(z) print("
1.<button onclick="preview('data');" id="print">打印</button> 2. 3.js: <script type="text/javascript"> function preview(id){ var sprnhtml=$('#'+id).html(); //获取区域内容 var selfhtml=$('body').html(); //获取当前页的html