摘要: function exportExcelTest(){var p=$('#construction_tab').tabs('getSelected'); //获取选择的面板对象var title=p.panel('options').title;//获取面板标题//对标题做判断if(title == '散杂货'){window.location.href="next.html"; alert(title); }else{ alert(title); }}//给tabs后面增加按钮$('#consignm 阅读全文
posted @ 2013-09-10 09:35 koma 阅读(1925) 评论(0) 推荐(0)
摘要: java 冒泡排序的实现 1 public class BubbleTest { 2 3 public static void sort(int[] a){ 4 5 for(int i = 0;i a[j+1]){10 11 int temp = a[j];12 a[j] = a[j+1];13 a[j+1] = temp;14 }15 ... 阅读全文
posted @ 2013-07-05 18:06 koma 阅读(435) 评论(0) 推荐(0)
摘要: 一:IO(输入输出流):有三种输入输出流是比较常用的:a):第一种是inputStream和outputStream该两种类是顶层的抽象类;如果想使用的话,必须使用他的子类b):第二种是FileInputStream和FileOutputStream该两种类是对于文件的读取所采用的类,使用方法是是:InputStreamin=newFileInputStream();c):第三种是ByteArrayInputStram和ByteArrayOutputStream是关于数组的,即该类的构造方法。d):第四种是BufferedInputStream和BufferedOutStream是缓冲的数据处 阅读全文
posted @ 2013-05-15 20:25 koma 阅读(271) 评论(0) 推荐(0)
摘要: Java学习心得:1:关于JTextArea的滚动条的显示:默认把JTextArea加入到JPanel中是不显示进度条的。必须把JTextArea加入到JScrollPane里就行了,然后在把JScrollPane加入到JPanel中。2:如何出现警告窗口:JOptionPane.showMessageDialog(frame,"端口不能为空!","警告",JOptionPane.WARNING_MESSAGE);3:产生一个带有标题和边框的pannel对象:pan1.setBorder(BorderFactory.createTitledBorder( 阅读全文
posted @ 2013-05-15 20:22 koma 阅读(119) 评论(0) 推荐(0)