`
文章列表
<div class="page_index" style="margin-top:20px;"> <span id="showPage">第2页</span> <span id="totalPage" data-size="4">共4页</span> <a id="first" onclick="getPage(this)" href="javascript:void(0) ...
//total : 总数 //pageSize : 每页显示数 //totalPage : 共页数 var totalPage = (total + pageSize - 1)/pageSize;  
错误, android sdk location shoud not contain whitespace,as this can cause problems with thte ndk tools
        错误代码:   Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Dev Tools\JDK\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1        原因: ...
1,注释修改项目目录下的.project文件   <?xml version="1.0" encoding="UTF-8"?><projectDescription> <name>FlexPaper</name> <comment></comment> <projects> </projects> <buildSpec> <!--  <buildCommand&g ...
1.退出 eclipse 2.到[工程目录下]/.metadata/.plugins/org.eclipse.core.runtime 3.把org.eclipse.wst.server.core.prefs和 org.eclipse.jst.server.tomcat.core.prefs这两个文件去掉 4.重启eclipse
package com.emolay.util; import java.io.IOException; import java.io.InputStream; import java.util.Properties; public class PropertiesUtils { private static final Properties properties = new Properties(); static { try { load(); } catch (Exception e) { } } private st ...
decrease_time = setInterval(decrease_opacity_val,10); function decrease_opacity_val(){ showID.style.opacity = showID.style.opacity - 0.01; if(showID.style.opacity == 0) { clearInterval(decrease_time); showID.style.display = "none"; showID.style.opacity = ""; ...

查看端口命令

    博客分类:
  • Java
netstat -ano 查看所有端口 netstat -ano|findstr "1935" 查看1935端口占用PID tasklist|findstr "PID”
1.退出 eclipse 2.到[工程目录下]/.metadata/.plugins/org.eclipse.core.runtime 3.把org.eclipse.wst.server.core.prefs和 org.eclipse.jst.server.tomcat.core.prefs这两个文件去掉 4.重启eclipse
package org.alfresco.repo.bom.util; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.StringReader; import java.io.FileOutputStream; import java.io.InputStream; import java.u ...
package org.alfresco.repo.bom.util; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Enumeration; import java.util.zip.Deflater; import org.apache.tools.zip.ZipEntry; import org ...
package org.alfresco.repo.bom.util; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import org.apache.tools.zip.ZipEntry; import org.apache.tools.zip.ZipOut ...
替换了项目jar文件Tomcat运行报错, 项目开发环境jdk1.6,替换jar文件编译环境是1.7  修改eclipse java ->compiler和Installed JREs 重新编译替换jar文件即可。   如图:   

js去空格

var content = Dom.get("mail_content").value.replace(/(^\s*)|(\s*$)/g,'');//去前后空格 //replace(/\s/ig,'');去全部空格  
Global site tag (gtag.js) - Google Analytics