`
7wolfs
  • 浏览: 178038 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论
文章列表
1. 不要将数组的获取长度的方法放到for 循环的判断里,如果在for里对该数组做了增加数据的操作,可能会引起死循环。 var resultCellNum = new Array(); var numTemp = resultCellNum; //var numTempLength = numTemp.length; for(var i=0;i<numTemp.length;i++){ .....1. . resultCellNum.push(i,0); ...... } 2. js中有对象 ...
sql server 1) SQL Server Management Studio Security-->Logins, 新建或查看user时,注意user的General里的authentication,必须是SQL Server authentication 2) SQL Server Management Studio 点击 左边面板的Object Explorer的根目录,选择属性,查看Security,必须选中SQL Server and Windows Authentication Mode 3) SQL Server Configuration Manager (Menu ...
引用 什么是索引 拿汉语字典的目录页(索引)打比方:正如汉语字典中的汉字按页存放一样,SQL Server中的数据记录也是按页存放的,每页容量一般为4K 。为了加快查找的速度,汉语字(词)典一般都有按拼音、笔画、偏旁部首等排序的目录(索引),我们可以选择按拼音或笔画查找方式,快速查找到需要的字(词)。 同理,SQL Server允许用户在表中创建索引,指定按某列预先排序,从而大大提高查询速度。 •          SQL Server中的数据也是按页( 4KB )存放 •          索引:是SQL Server编排数据的内部方法。它为SQL Server提供一种方法来编排查询数 ...
for version 15 1, 生成数据库脚本 Database-->Database Generation,在弹出的窗口中选择相应的需要生成脚本的内容,设置相关的参数。 2, 导入 Oracle 数据库 1) File-->Reverse Engineer-->Database... 2) 为DBMS选择Oracle 11g 3) 选中'Using a data source', 点击按钮('Connect to a Data Source) 4) 选择'Connection Profile:', 点击 ‘Configure...' 按钮 5) 选择 'Connect ...
1, Compile, Deploy 1) pom.xml <project> ... </build> ... <plugins> ... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <configuration> <url>http://127.0.0.1:8080/manager ...
物化视图 ALTER VIEW view_name WITH SCHEMABINDING AS SELECT *** 必须使视图使用SCHEMABINDING选项 CREATE UNIQUE CLUSTERED INDEX ivCustomerOrders ON view_name(col1,col2); update and select UPDATE tblSearchOutput SET tblSearchOutput.outputName = tblEntityField.Description FROM tblEntityField ...
8. JavaScript 中 this 的含义 函数中的this 当函数被调用时,函数中的this指向函数的调用者。函数属于某个对象,当通过该对象对这个函数进行调用时,函数中的this指向该对象。 比如jQuery的对象构造方法中的下面这条语句: return new jQuery.fn.init( selector, context, rootjQuery ); init方法是jQuery.fn这个对象的方法,它被调用时,init中的this就指向jQuery.fn这个对象。 7. JavaScript 中 attachEvent和addEventListener的区别 document. ...
1. Ajax, 使用异步方式时,会将请求提交到server后,马上返回前端,不等server端全部执行完。 initJSONStr:function(){ $.ajax({ type:"POST", async:true, url:"1/1.json?1=" + 1, dataType:"json", success: function(json){ var jsonStr = JSON.stringify(json); ...
引用 http://java-cn.iteye.com/blog/478623 普通的java类获取spring 的bean配置 这个问题困扰了我2天终于找到原因了,原来是少了在xml文件中的配置。 如下是在网上找到的5中获取spring 中bean的方式总结: 方法一:在初始化时保存Applicatio ...
<% if (session.getAttribute(UsernamePasswordAuthenticationFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) != null) { %> <span style="color:red"> 登录失败,请重试. </span> <% } ...
解决Maven 内存溢出问题 在/maven/bin/maven.bat里增加set MAVEN_OPTS= -Xms128m -Xmx256m Cannot invoke Tomcat manager 1. Tomcat 没有启动 2. tomcat-users.xml里没有配置相关user Note Maven类型的Java项目,如果出现与Maven有关的错误提示,比如 pom.xml 文件无法加载相关的第三方jar包时,会影响Java项目中JUnit 4的注解类型的测试案例运行,也会影响带有main函数的java 类运行。 对于JUnit 4的注解类型的测试案例而言,会出现‘no ru ...
httpServlet SSH: Spring + Struts +Hibernate or iBatis (Spring src) Design Pattern Unix JTA credential 不同类型Java Cache 的比较 (JCS, ThreadLocal etc) REST 1. Java (top class in Java) .java.lang.Object .StingBuilder, StringBuffer(capacity) vs String .Error,Exception .cost of synchronization .inline final ...

Misc of SVN

svnadmin create F:\lava\svn\ conf\svnserve.conf svnserve --daemon --root F:\svn_repository sc create svnservice binpath= "D:\Program Files\SlikSvn\bin\svnserve.exe --service -r F:\svn_repository" displayname= "SVNService" depend= Tcpip net start svnservice
7. excel文件打开后,编辑字体颜色时,出现操作卡机现象 因为之前打印excel文件时,连接到了某个网络中的打印机进行打印。当离开打印机所在的网络时,打开excel文件编辑字体颜色等跟打印机相关的内容时,会使用上次打印机的的设备,出现连接打印机等网络操作,造成操作卡顿。 此时,需要在excel里重新选择一个pdf文件打印机,并进行打印,使excel记住最后一次打印使用的pdf文件打印,不必再去连接网络实体打印机。 6. Win 7 64bit 下photoshop cs3进行拷贝操作时,出现软件假死现象。 这是因为跟迅雷冲突了,关掉迅雷的 “监视剪贴板”功能,重启迅雷即可。 5. wi ...
1, no protocol rfc822 provided 在application 里 增加mail.jar 2, The method getTextContent() it is undefined for the type Node I changed the sequence of libraries in the classpath and it got resolved. in eclipse, project (right click), properties-->java build path-->Order and Export, up ...
Global site tag (gtag.js) - Google Analytics