dyaod 发表于 2013-2-4 20:16:18

断言简介

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>启用断言: java -ea 类名

停用断言: java -da 类名



使用方法一: assert <boolean表达式> 当表达式为false时程序停止运行
使用方法一: assert <boolean表达式> :<字符串表达式2> 当表达式为false时程序停止运行并输出表达式2的内容
页: [1]
查看完整版本: 断言简介