`
yuelong
  • 浏览: 33161 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论
文章列表

i++ ++i

    博客分类:
  • Java
i++和++i是有区别的, i++是在一个先使用后加1,即先使用i的值,后让i+1 ++i则是先加1后使用,即先让i+1后再使用i的新值   int i=3; int count=(i++)+(i++)+(i++);//count=3+4+5,不信的话你可以用count=(i++)+(i++);这时会等于7 System.out.println(i);//i=6 System.out.println(count);//count=12 int j=3; count=(++j)+(++j)+(++j);//count=4+5+6 Syste ...
定义和用法 select() 方法用于选取密码域中的文本。语法passwordObject.select()实例 下面的例子可选取密码域中的文本:<html><head><script type="text/javascript">function selText()  {  document.getElementById('password1').select()  }</script></head><body> <form><input type="password& ...
模拟残留服务环境 生成服务: 在DOS命令行下D:\>sc \\主机名 create 你启的服务名 binpath= 路径\执行的exe服务名如:D:\>sc \\50000028-ts create ScannerService binpath= D\MES\Scanner\ScannerService\ScannerService\obj\Release\ScannerService.exe注意=后一定要有一个空格 sc后要有一个空格 清除残留服务办法一:用sc.exe这个Windows命令开始——运行——cmd.exe,然后输入sc就可以看到了。使用办法很简单:sc del ...

Iframe相关

1、Iframe子页面调用父页面函数 window.parent.function();
  核心提示:Struts2中通过配置文件重定向后常出现参数找不到的问题,总结一下解决方法: 1. 确保Action中的需要在redirect时传递变量是基本类型(比如int、long等); 2. 确保变量都有setter getter; 3. 配置文件: redirect方式: action name = view class = myActio  Struts2中通过配置文件重定向后常出现参数找不到的问题,总结一下解决方法:1. 确保Action中的需要在redirect时传递变量是基本类型(比如int、long等);2. 确保变量都有setter & getter;3. 配 ...
Global site tag (gtag.js) - Google Analytics