`
文章列表
前言: 在互联网技术开发中 ,大多数都是基于数据库的开发,而随着应用维护的历史,数据量越来越大, 以及业务变得更加复杂,要求更高的响应时间,和更高的计算能力,单台服务器,单表单库的方式存在着比较大的瓶颈 ...
HTML 页面 首先要引入以下的几个JS文件 http://sandbox.runjs.cn/js/sandbox/xCharts/xcharts.min.css"    http://sandbox.runjs.cn/js/sandbox/other/d3.v2.min.js "http://sandbox.runjs.cn/js/sandbox/xCharts/xcharts.min.js 这是几个下载地址 <html> <script type="text/javascript"  src="<%=base ...
-----------------------------备份数据库----------------------------- /** * 传入存储路径备份数据库 * @throws IOException  path为 备份为xxx.sql的路径 */ public void backupdatabase(String path) throws IOException{ Runtime rt = Runtime.getRuntime(); // 调用 调用mysql的安装目录的命令 Process ps= rt.exec("mysqldump -h loc ...
      public static final String EXT = ".zip";      private static final String BASE_DIR = "";        // 符号"/"用来作为目录标识判断符      private static final String PATH = "/";      private static final int BUFFER = 1024;      /**      * 压缩      *       * @para ...
Coda Popup Bubbles 采用jQuery开发,类似“冒泡”效果的提醒弹出框。 主页:http://jqueryfordesigners.com/coda-popup-bubbles/ 下载:http://jqueryfordesigners.com/coda-popup-bubbles/ (没找到) 示例:http://jqueryfordesigners.com/demo/coda-bubble.html Simple Effects Plugins jQuery特效插件,可以实现收缩,隐藏,显示,淡入/淡出和上下滑动效果等. 主页:http://www.learningj ...
package com.jshop.action; import java.io.FileInputStream; import java.io.File; import java.io.InputStream; import java.io.UnsupportedEncodingException; import org.apache.struts2.convention.annotation.Action; import org.apache.struts2.convention.annotation.ParentPackage; import org.apache.struts2 ...
** * 输出目录中的所有文件及目录名字 * @param filePath */ public void readFolderByFile(String filePath) { File file = new File(filePath); File[] tempFile = file.listFiles(); for(int i = 0;i<tempFile.length;i++) { if(tempFile[i].isFile()) { System.out.println("File : "+tempFile[i].getName()); } i ...
这里主要是获取路径下的文件,通过过去此文件的文件名称,然后到目标目录下创建相同的文件名(当然可以自己自定义,我这里是为了项目需要)。再通过I/O流,将原文件写入到目标文件中去。 /** * 复制广告里面的内容,到客户端的目录下面 * @param advPath(原文件位置) * @throws IOException */ public void copyFile(String advPath) throws IOException{ int i=advPath.lastIndexOf("/");//获取路径最后一个“/”的位置 String ...
$(document).ready(function() {   $('form').submit(function() {     if(typeof jQuery.data(this, "disabledOnSubmit") == 'undefined') {       jQuery.data(this, "disabledOnSubmit", { submited: true });       $('input[type=submit], input[type=button]', this).each(function() {         $ ...
Global site tag (gtag.js) - Google Analytics