`
newton21012915
  • 浏览: 60364 次
  • 性别: Icon_minigender_1
  • 来自: 长春
社区版块
存档分类
最新评论
文章列表
context.xml <Context privileged="true"> <!-- Default set of monitored resources --> <WatchedResource>WEB-INF/web.xml</WatchedResource> <!-- Uncomment this to disable session persistence across Tomcat restarts --> <!-- <Mana ...

C# 笔记

    博客分类:
  • c#
using namespace == import static void Main() M要大写 变量定义与java相同 定义常量 const 1.在声明时初始化。 2.总是静态的,不必使用修饰符static。 在字符串前加上@,字符串中的字符不会被转意。 goto label; label1: foreach (int i in array){} namespace == package 函数参数默认是值传递,如果要使用引用传递参数要加上ref关键字。 只读字段只可以构造函数中赋值,不可以在其他地方赋值,每个实例可以有不同的值。 struct定义一个结构。 partial关键字允许把类,结构 ...
if... else 异常捕捉 #coding:utf-8 ''' Created on 2009-7-31 @author: admin ''' if __name__ == '__main__': num = 6 print ("good" if num == 8 else 'bad') if 'yes' in ('y','ye','yes'):print ('ok') a=['cat','door','example'] for x in a: print (x) ...
import shutil class PrintClass: def __init__(self): pass def printS(self, s): print (s) def copyFile(self): shutil.copyfile("D:\\workspace\\file1.txt", "D:\\workspace\\file2.txt") if __name__ == '__main__': p = PrintClass() ...
现在我们看看dwr在页面上怎样跟服务器交互,dwr为我们提供了一个叫engine.js文件中定义一个DWREngine的javascript对象,其主要功能是处理页面和servlet之间的数据传递和转换。当中有三个函数需要特别的留意 1、_execute由界面的javascript调用根据传入的参数进行一系列的初始化,并调用调用endBatch调用_sendData与服务器的servlet进行交互 其传入的参数主要有 path——在/WEB-INF/web.xml配置的url-pattern, scriptName——/WEB-INF/dwr.xml中creator的javascript的名称 ...

Tab.addListener

SearchTab.addListener('activeTabChange', function(){ //     var index = SearchTab.getTabIndex(SearchTab.get('activeTab')); //     if (index == 1) { //     //    initCheckUser(); //     } });
地址栏icon图标替换   方法1:制作一个ico图标,然后重命名为favicon.ico,将这个icon图标文件上传至网站的根目录下就可以了。   说明:这种方法适用于各种浏览器的地址栏icon图标和收藏夹图标。   方法2:在网页的head中加入以下代码:   IE或者Firefox地址栏前换成自己的图标 < link rel="icon" href="favicon.ico" type="image/x-icon"> < link rel="Shortcut Icon" href=&q ...
@Column(name = "col_tier", nullable = false, columnDefinition="int not null default 1") private int tier;
很多人都知道,无论是图片还是文字,在div里面水平居中是很容易的,而垂直居中却比较困难。今天一个偶然的尝试,让我解决了这个问题。 这里涉及到两个属性,一个是line-height,另一个是vertical-align。在IE里面,只需要line-height就可以实现这个效果,不过要想在firefox和opea里面也实现这样的效果,必须用到vertical-align,而且这是属性一定要定义在image上面,而不是定义在div上。请看下面的代码: IE中的代码: div{ height:100px; line-height:100px; } div img{ vertical-align: ...

div中文字居中

加上line-height,作用于一行的vertical-align才会起作用。
public boolean restore(BackupDto dto) throws Exception { OutputStream out = null; BufferedReader br = null; OutputStreamWriter writer = null; try { String fPath = dto.getPath(); Runtime rt = Runtime.getRuntime(); String rootPath = WebUtil.getMysqlRoot(); logger.debug( ...
import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import com.wutka.jox.JOXBeanInputStream; import com.wutka.jox.JOXBeanOutputStream; public class BeanXMLMapping { /** *//** * Retrieves a bean object for the * receive ...
mport java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintStream; import ca.beq.util.win32.registry.RegistryKey; import ca.beq.util. ...
       <!doctype html public "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">          <html xmlns="http://www.w3.org/1999/xhtml" lang="gb2312">          <head>          <title> 代码实例: ...
关于获取各种浏览器可见窗口大小的一点点研究 <script> function getInfo() { var s = ""; s += " 网页可见区域宽:"+ document.body.clientWidth; s += " 网页可见区域高:"+ document.body.clientHeight; s += " 网页可见区域宽:"+ document.body.offsetWidth + " (包括边线和滚动条的宽)"; ...
Global site tag (gtag.js) - Google Analytics