一、前言 聚天地之灵气,集日月之精华!一个简单的java文本编辑器由此而生。毕设所需,很是无奈! 二、界面预览 三、实现思路 1.字体选择器的实现 (1).字体类 class MyFont{ private Font font; private Color color; public Font ge
分类:
编程语言 时间:
2016-03-02 00:14:38
阅读次数:
310
1.先升级Gem sudo gem update --system 2.切换cocoapods的数据源 【先删除,再添加,查看】 gem sources --remove https://rubygems.org/ gem sources -a https://ruby.taobao.org/ ge
分类:
其他好文 时间:
2016-02-29 14:07:37
阅读次数:
145
if中[ ]实际上调用的是test的一种快捷方法。bash的数值和字符串比较运算符: 注意=两边的空格 字符串 数值 为真,如果 x = y x -eq y x != y x -ne y x < y x -lt y x <= y x -le y x > y x -gt y x >= y x -ge
分类:
系统相关 时间:
2016-02-29 12:34:08
阅读次数:
180
response对象 基本概念: 包含了响应客户请求的有关信息。它是HttpServletResponse类的实例。 response对象具有页面作用域,即访问一个页面时,该页面内的response对象只能对这次访问有效,其它页面的response对象对当前页面无效。 方法说明: String ge
分类:
Web程序 时间:
2016-02-28 15:06:38
阅读次数:
183
1.先升级Gem sudo gem update --system 2.切换cocoapods的数据源 【先删除,再添加,查看】 gem sources --remove https://rubygems.org/ gem sources -a https://ruby.taobao.org/ ge
分类:
其他好文 时间:
2016-02-28 11:08:16
阅读次数:
216
我今天在win10上安装了Visual Studio 2015,结果新建项目后在模板中选择一项后就会弹出一个对话框: 查了许多种方法后,下面这个方法解决了我这个问题: 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。作者:妖燎雨链接:http://www.zhihu.com/qu
分类:
其他好文 时间:
2016-02-27 17:58:03
阅读次数:
192
两个参数对比[root@CentOS6 shell]# vi test.sh [root@CentOS6 shell]# cat test.sh #!/bin/bashif [ $1 -ge $2 ]; then echo -e "\033[41;37m <参数不对,第一个数字要小于第二个,退出此次
分类:
系统相关 时间:
2016-02-26 12:06:00
阅读次数:
286
<div class="time"> <span id="t_d">00天</span> <span id="t_h">00时</span> <span id="t_m">00分</span> <span id="t_s">00秒</span> </div> <script> function Ge
分类:
Web程序 时间:
2016-02-25 11:51:41
阅读次数:
223
2015浙江省赛B题。我用了枚举+二分。。时间复杂度o(64*n),1900ms跑过的。应该有更好的方法。 #include<cstdio> #include<cstring> #include<cmath> #include<string> #include<vector> #include<qu
分类:
其他好文 时间:
2016-02-22 20:45:26
阅读次数:
257
封装好的JS方法 sanjiliandong.js $(document).ready(function(e) { $("#sanji").html("<select id='sheng'></select><select id='shi'></select><select id='qu'></se
分类:
其他好文 时间:
2016-02-22 16:45:17
阅读次数:
178