1.获取图片public static Image getImage(String key) { Image img = getDefault().getImageRegistry().get(key); if (img == null) { getDefault().getImageReg...
分类:
其他好文 时间:
2015-08-28 19:32:26
阅读次数:
139
https://leetcode.com/problems/flatten-binary-tree-to-linked-list/二叉树先序遍历,之后做成链表 1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4.....
分类:
其他好文 时间:
2015-08-28 19:32:28
阅读次数:
133
UIImagePickerController1.+(BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;检查指定源是否在设备上可用。//检查照片源是否可用[UIImagePickerControlleri...
分类:
其他好文 时间:
2015-08-28 19:31:25
阅读次数:
155
1.自定义编辑器激活方式 /** * Create a customized editor whose activation process is customized * * @param viewer * the viewer the editor is created for ...
分类:
其他好文 时间:
2015-08-28 19:30:41
阅读次数:
154
线号机是打标签的常用设备,BA系统常用的是热缩管式的线号机,但是便宜的线号机是不能通过电脑打印的,只能一个一个字母的输入,你都无法想象打印一万个点的标签时工人惊愕的表情和麻木的手指,为了提高工作效率,强烈建议工程上使用可以连接电脑,使用EXCEL表格打印的线号机。下图是普通的线号机:给大家推荐一个可...
分类:
其他好文 时间:
2015-08-28 19:30:49
阅读次数:
133
1、创建本地分支名称为dev的本地分支git branch dev2、将本地分支添加到远程分支git push origin dev3、查看创建的本地分支, 带有*符号的分支,代表当前所在分支git branch4、查看远程分支git branch -r
分类:
其他好文 时间:
2015-08-28 19:32:24
阅读次数:
125
static void Main(string[] args) { DateTime startTime = DateTime.Now; string userName = "用户a"; string setInfo ...
分类:
其他好文 时间:
2015-08-28 19:29:51
阅读次数:
120
效果如下图:package{ import flash.display.Sprite; import flash.events.MouseEvent; /** * @author chb * @Email 645338868@qq.com * @data 2015-8-28 * *...
分类:
其他好文 时间:
2015-08-28 19:29:44
阅读次数:
178
UIView属性1.alpha设置视图的透明度.默认为1.//完全透明view.alpha=0;//不透明view.alpha=1;2.clipsToBounds//默认是NO,当设置为yes时,超出当前视图的尺寸的内容和子视图不会显示。view.clipsToBounds=YES;3.hidden...
分类:
其他好文 时间:
2015-08-28 19:28:12
阅读次数:
125
System.Web.HttpContext.Current.Server.MapPath一般来说,我们需要去当项目文件的当前路径比如你的项目文件是在d:/workspace/demo/demo.sln我们需要取到d:/workspace/demo/ 这个路径。现在列出我再网上找出来的一些获取路径的...
分类:
其他好文 时间:
2015-08-28 19:28:51
阅读次数:
142
ie360 浏览器float right 向下错位解决办法span 当设置其float:right;时,其向下一行错位时最佳办法:将span移到所要显示的文字前面其次办法:在span母容器的css里添加position:relative;在span的css里添加position:absolute;r...
分类:
其他好文 时间:
2015-08-28 19:29:28
阅读次数:
146
var oIframe=document.getElementById('iframe1'); 获取iframe对象; oIframe.contentWindow.// iframe 里的window对象 oIframe.contentDocument.//ifram里的document对象从if....
分类:
其他好文 时间:
2015-08-28 19:28:03
阅读次数:
133
DescriptionSome positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given pos...
分类:
其他好文 时间:
2015-08-28 19:27:36
阅读次数:
137
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace MvcForLamadaToTableJion.Controllers{ ....
分类:
其他好文 时间:
2015-08-28 19:25:36
阅读次数:
3256
用Runtime写的分类:https://github.com/ISMeSAM/-tabBarItem-badgeValue-https://github.com/ISMeSAM/SAMUIAlertViewExhttps://github.com/ISMeSAM/RemoveButtonHighl...
分类:
其他好文 时间:
2015-08-28 19:25:49
阅读次数:
97
稍微用脑子想了一下,图形控件没有句柄,因此先把自己的坐标改一改,然后只要把父控件的某些区域Invalidate一下就可以了,WM_PAINT消息一来,父控件就会重绘所有子图形控件,就达到了相应的效果。怪不得没看到调用SetWindowPos这样的函数。有空详细跟踪一下。举例:procedure TF...
分类:
其他好文 时间:
2015-08-28 19:26:46
阅读次数:
144