今天最成功
mianhuaman · 共 194 篇文章
ubuntu完美卸载JDK
要删除 OpenJDK (如果已安装的话)。首先,检查是安装的哪个 OpenJDK包。 # dpkg --list | grep -i jdk 移除 openjdk包: # apt-get purge openjdk* 卸载 OpenJDK 相关包: # apt-get purge icedtea-* openjdk-* 检查所有 OpenJDK包是否都已卸载完毕: # dpkg --list | grep -i jdk 完毕。
2020-09-01 12:31 · CoreJava · 评论(0)
centos 安装mysql
1、确认mysql是否已安装,有下面的代码可知 [root@cdh1 zjl]# yum list installed mysql* Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.zju.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com Installed Packages MySQL-python.x86_64 1.2.…
2019-09-08 22:49 · MySQL · 评论(0)
Ubuntu安装jdk安装mysql
1.安装open jdk7 apt-get update apt-get install openjdk-7-jdk 注意:Ubuntu16.04的安装源已经默认没有openjdk7了,故要手动添加仓库: sudo add-apt-repository ppa:openjdk-r/ppa 2.安装mysql apt-get install mysql-server 3.服务器常见管理 1)查看所有服务 service --status-all 2)查看当前服务状态 service servicename status是当前状态 4.启动、停止MySQL服务 service mysql sta…
2019-07-17 09:57 · MySQL · 评论(0)
freemark 基本语法
reemarker的基本语法及入门基础 一、freemarker模板文件(*.ftl)的基本组成部分 1. 文本:直接输出的内容部分 2. 注释:不会输出的内容,格式为<#-- 注释内容 --> 3. 取值(插值):代替输出数据模型的部分,格式为${数据模型}或#{数据模型} 4. ftl指令:Freemarker指令,类似于HTML标记。 内建指令:开始标签:<#directivename parameter> 结束标签:</#directivename> 空标签:<#directivename parameter/> 自定义指令:开始标签:<@directivename paramete…
2018-03-22 23:19 · CoreJava · 评论(0)
CSS IE 兼容
padding:10px; padding:9px\9; /* all ie */ padding:8px\0; /* ie8-9 */ *padding:5px; /* ie6-7 */ +padding:7px; /* ie7 */ _padding:6px; /* ie6 */
2017-09-06 23:07 · WebUi · 评论(0)
JavaScript 精度丢度丢失
Snandy If you cannot hear the sound of the genuine in you, you will all of your life spend your days on the ends of strings that somebody else pulls. JavaScript数字精度丢失问题总结 本文分为三个部分 JS 数字精度丢失的一些典型问题 JS 数字精度丢失的原因 解决方案(一个对象+一个函数) 一、JS数字精度丢失的一些典型问题 1. 两个简单的浮点数相加 1 0.1 + 0.2 != 0.3 // true Firebug 这真不是 F…
2017-06-16 15:34 · WebUi · 评论(0)
jquery判断checked的三种方法:
jQuery 判断checked的三种方法: .attr(‘checked’): //看版本1.6+返回:”checked”或”undefined” ;1.5-返回:true或false .prop(‘checked’): //16+:true/false .is(‘:checked’): //所有版本:true/false//别忘记冒号哦 jquery赋值checked的几种写法: 所有的jquery版本都可以这样赋值: // $(“#cb1″).attr(“checked”,”checked”); // $(“#cb1″).attr(“checked”,true); jquery1.6+…
2017-02-07 08:30 · Web page · 评论(0)
linux 新增硬盘分区并挂载
运行fdisk -l 查看计算机对应的硬盘信息 Disk /dev/vda: 21.5 GB, 21474836480 bytes 16 heads, 63 sectors/track, 41610 cylinders, total 41943040 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000…
2016-06-02 12:45 · CoreJava · 评论(0)
JasperReports打印图片
long start = System.currentTimeMillis(); JasperPrint jasperPrint = JasperFillManager.fillReport("H:\\hyxprintworkspace\\taobao\\sfDemo\\src\\com\\sf\\openapi\\waybill\\print\\util\\poster_100mm150mm.jasper", null, new JREmptyDataSource()); JRGraphics2DExporter exporter = new JRGraphics2DExporter();…
2016-05-21 22:20 · CoreJava · 评论(0)
JS parent 及openner
window.parent与window.openner区别 今天总结一下js中几个对象的区别和用法: 首先来说说 parent.window与top.window的用法 "window.location.href"、"location.href"是本页面跳转 "parent.location.href"是上一层页面跳转 "top.location.href"是最外层的页面跳转 举例说明: 如果A,B,C,D都是jsp,D是C的iframe,C是B的iframe,B是A的iframe,如果D中js这样写 "window.location.href"、"location.href":D页面跳转…
2016-05-11 09:32 · WebUi · 评论(0)
easyui combobox模糊匹配
代码结果 1)html代码 <select class="easyui-combobox" id="test-a" options="filter: filterCombo" style="width:200px;height:22px;"> <option selected="selected"></option> <option>中通快递(ZTO)</option> <option>圆通快递(YTO)</option> <option>天天快递(TT)</option> <option>国通快递(GTO)</option> <option>申通快递(STO)</option> <opti…
2016-01-02 00:16 · WebUi · 评论(0)
LODOP插件开发
function zkPreview() { LODOP=getLodop(); LODOP.PRINT_INIT("test套打001"); LODOP.SET_PRINT_PAGESIZE(1,'180mm','150mm',''); //设置纸张高度 LODOP.ADD_PRINT_HTM(0,149,157,'100%',"<span style='position:absolute;color:red;font-size:10px;width:200px;'>客户公司名称233333333333333333333333--------------------333333333333…
2015-09-22 19:45 · WebUi · 评论(1)
窗体居中显示
1) 居中显示窗体 function(jqueryObj,widthValue,heightValue) { var leftValue = ($(window).width() - widthValue) / 2; var topValue = ($(window).height() - heightValue) / 2; $(jqueryObj).css({"left":leftValue,"top":topValue}); };
2015-09-21 17:06 · WebUi · 评论(0)