12 2011 档案
摘要:public class ttt { public static int[] ii = new int[]{1,2,3,4,5,6,7,8,9,10,11}; public static int start = 0; public static int end = 0; public static int middle = 0; String n = ""; public void twoF(int aa,int m){ n += (m+1+"-"); if(aa!=ii[m]){ ...
阅读全文
摘要:package com.company.Tt;import java.util.Scanner;public class T4 { public static void main(String[] args) { Scanner cs = new Scanner(System.in); System.out.println("请输入一个多位整数来计算出0到该数的1出现的个数......"); int n = cs.nextInt(); //要求操作者输入一个正整数 T4 t = new T4(); //声明一个T4类的对象 t.finds2(n); //调用...
阅读全文
摘要:转载:http://blog.sina.com.cn/s/blog_4b3646350100dssf.htmlwindow.close()在IE下可以执行关闭,但在Firefox下不关闭,网上有好多的答案,但都实现不了,经过仔细查找问题不是JS代码window.close()的问题,而是Firefox的配置问题,解决方法如下:在Firefox地址栏里输入 about:config在配置列表中找到dom.allow_scripts_to_close_windows点右键的选切换把上面的false修改为true即可。注:默认是false,是为了防止脚本乱关窗口另附代码:window.opener
阅读全文