首页 > 其他
UIImageView添加点击事件
image.userInteractionEnabled = YES;UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(imagePressed:)];[...
分类:其他   时间:2015-12-14 10:42:50    收藏:0  评论:0  赞:0  阅读:203
判断图片是否加载完成
最简单:document.getElementById("img2").onload=function(){}性能优化:function loadImage(url, callback) { var img = new Image(); //创建一个Image对象,实现图片的预下载 img.src ...
分类:其他   时间:2015-12-14 10:41:40    收藏:0  评论:0  赞:0  阅读:149
遇到崩了的情况
1.-[__NSCFNumber rangeOfCharacterFromSet:]: unrecognized selector sent to instance 0x7fa5216589d0 不轻易间把NSNumber类型的赋值给字符串
分类:其他   时间:2015-12-14 10:41:20    收藏:0  评论:0  赞:0  阅读:149
谷歌浏览器Chrome不再支持showModalDialog的解决办法
问题重现弹出窗口编码:JavaScript01234567var obj = new Object();var retval = window.showModalDialog("request.aspx",obj,"dialogWidth=500px;dialogHeight=300px");if ...
分类:其他   时间:2015-12-14 10:41:09    收藏:0  评论:0  赞:0  阅读:162
git的使用
http://rogerdudler.github.io/git-guide/https://www.atlassian.com/git/tutorials/--------------------ssh-keygen -t rsa -C "***@***.com(邮箱)"cd .sshsubl i...
分类:其他   时间:2015-12-14 10:40:40    收藏:0  评论:0  赞:0  阅读:150
tp导出excel
//数据导出 protected function dao($db,$where,$join,$field){ $data = M($db)->join($join)->where($where)->field($field)->order('stime desc')->select...
分类:其他   时间:2015-12-14 10:39:59    收藏:0  评论:0  赞:0  阅读:125
codeforces 535D. Tavas and Malekas KMP
题目链接又复习了一遍kmp....之前都忘光了 1 #include 2 using namespace std; 3 #define pb(x) push_back(x) 4 #define ll long long 5 #define mk(x, y) make_pair(x, y) 6 #de...
分类:其他   时间:2015-12-14 10:38:00    收藏:0  评论:0  赞:0  阅读:244
AMD规范与CMD规范的区别是什么?
AMD规范与CMD规范的区别是什么? 在比较之前,我们得先来了解下什么是AMD规范?什么是CMD规范?当然先申明一下,我个人也是总结下而已,也是网上看到的资料,自己总结下或者可以说整理下而已,供大家更深入的了解!因为我们都知道 AMD规范:是 RequireJS 在推广过程中对模块定义的规范化产出的...
分类:其他   时间:2015-12-14 10:36:49    收藏:0  评论:0  赞:0  阅读:159
notification的使用
示例: 1 NotificationManager nm = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE); 2 Notification n = new Notification...
分类:其他   时间:2015-12-14 10:36:40    收藏:0  评论:0  赞:0  阅读:203
介词表示时间
.表示时间的介词1)in ,on,at 在……时一.in,on在方位名词前的区别 1.in表示A地在B地范围之内.如:Taiwan is in the southeast of China.2.on表示A地与B地接壤、毗邻.如:North Korea is on the east of China....
分类:其他   时间:2015-12-14 10:36:30    收藏:0  评论:0  赞:0  阅读:122
HP DL388 gen9服务器安装RHEL 6.5系统
测试:1、默认UEFI模式,F10下智能安装,如果选择自己划分分区,进入该选项后会看到系统自动就帮我们创建了一个/efi 的500M分区,一开始我就是被这个分区坑了的,要知道服务每次重启都要等很久的···/(ㄒoㄒ)/~~顺便说下这种错误的描述,以方便以后学习参考:分区:/efi/boot/swap...
分类:其他   时间:2015-12-14 10:35:59    收藏:0  评论:0  赞:0  阅读:1218
idea右键单击没有 svn选项处理办法
ntelliJ IDEA打开带SVN信息的项目不显示SVN信息,项目右键SVN以及图标还有Changes都不显示解决方法在VCS菜单中有个开关,叫Enabled Version Control Integration,在打开的窗口的选项中选择Subversion即可。操作如下图第一步:弹出界面中选择...
分类:其他   时间:2015-12-14 10:35:49    收藏:0  评论:0  赞:0  阅读:766
easyui-textbox 和 easyui-validatebox 设置值和获取值
表单作如下定义:该input使用easyui的"easyui-textbox"1 设置值的方式: 1 //使用表单选择器:代码似乎是有异常的 2 //$("input[name='snumber']").textbox('setValue', "22012"); 3 //使用表单选择器:代码没有异常...
分类:其他   时间:2015-12-14 10:35:39    收藏:0  评论:0  赞:0  阅读:332
Matplotlib -多组线用不同的线性、颜色、节点绘制
先来看看我们要实现的效果图吧:先来看看Matplotlib的plot函数原型plt.plot(x, y, color='r', maker='o', linestyle='-', linewidth=2.0)注意上面的color、maker、linestyle在同时画多组线的时候,我们想调线性、颜色...
分类:其他   时间:2015-12-14 10:34:39    收藏:0  评论:0  赞:0  阅读:163
为数据前面加上货币符号
/// /// 商品价格格式 /// /// /// /// public static string GetPrice(this decimal price, int? n = 0) { ...
分类:其他   时间:2015-12-14 10:34:29    收藏:0  评论:0  赞:0  阅读:178
工厂模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 工厂模式{ public interface AbstractFactory { Coat...
分类:其他   时间:2015-12-14 10:33:49    收藏:0  评论:0  赞:0  阅读:140
代码练习----以电脑为例
package com.hanqi;public class Computer { private String pinP;//品牌 public String getPinP() { return pinP; } public void setP...
分类:其他   时间:2015-12-14 10:33:39    收藏:0  评论:0  赞:0  阅读:129
Sizeof与Strlen的区别与联系
Sizeof与Strlen的区别与联系1.sizeof操作符的结果类型是size_t,它在头文件中typedef为unsigned int类型。该类型保证能容纳实现所建立的最大对象的字节大小。 2.sizeof是算符,strlen是函数。 3.sizeof可以用类型做参数,strlen只能用char...
分类:其他   时间:2015-12-14 10:33:09    收藏:0  评论:0  赞:0  阅读:113
多态,接口
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Factory{ public class person { int yanjing; ...
分类:其他   时间:2015-12-14 10:32:59    收藏:0  评论:0  赞:0  阅读:110
Xcode报错
1,昨晚升级iOS9.2之后。今天一来真机调试就报错: Could not find Developer Disk Image 解决方法:下载 DeveloperDiskImage_ios9.2 镜像解压后将其放到下面目录下就可以了:/Applications/Xcode7.0.app/Con...
分类:其他   时间:2015-12-14 09:21:09    收藏:0  评论:0  赞:0  阅读:149
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!