码迷,mamicode.com
首页 > 其他好文
自动换行
word-break:break-all和word-wrap:break-word都是能使其容器如DIV的内容自动换行。它们的区别就在于:1,word-break:break-all 例如div宽200px,它的内容就会到200px自动换行,如果该行末端有个英文单词很长(congratulation...
分类:其他好文   时间:2014-07-03 20:40:13    阅读次数:165
ICMP协议
ICMP协议1、ICMP简介ICMP全名为(INTERNET CONTROL MESSAGE PROTOCOL)网络控制消息协议。 ICMP的协议号为1。ICMP报文就像是IP报文的小弟,总顶着IP报文的名头出来混。因为ICMP报文是在IP报文内部的,如图:图:IP数据报2、ICMP类型 ICMP报...
分类:其他好文   时间:2014-07-03 20:40:47    阅读次数:332
LeetCode——Reverse Words in a String
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Clarification:What constitutes...
分类:其他好文   时间:2014-07-03 20:45:35    阅读次数:201
[权限管理]按子系统自己主动生成用户权限
通常我们都知道单个用户加入用户权限,或者这个用户属于哪个组权限。可是也有依据职能业务跨组业务,比方运营总监,他想要生产部+质量部+採购部+计划部的查询权。財务审计:须要財务模块的全部权限+其它模块的查询。老总:须要全部模块的查询权。事实上易飞提供按模块子系统,批量依照设定的查询 新增 改动 删除 ....
分类:其他好文   时间:2014-07-03 20:48:17    阅读次数:257
NGUI 学习笔记之一 ScrollView
一、createScrollView1、First, select the panel you want to be your scroll view and right-click anywhere in the Scene View to bring up the context menu, t...
分类:其他好文   时间:2014-07-03 20:46:51    阅读次数:278
CSOM创建Content Type并指定GUID
SharePoint 2013 Client Object Mode在创建Content Type时有一个限制,不能给Content Type指定一个GUID,只能由系统随机生成。而在用farm solution部署时,则可以在xml中指定好Content Type的GUID,或者用服务器端对象模型...
分类:其他好文   时间:2014-07-03 20:49:00    阅读次数:214
Intent数据传递
(1)首先是Activity的简单跳转: 1)、Activity的切换一般是通过Intent来实现的,Intent是一个Activity到达另一个Activity的引路者,它描述了起点(当前Activity)和终点(目标Activity)。一个简单Intent实现如下: (个人计较喜欢直接定义的方....
分类:其他好文   时间:2014-07-03 20:52:16    阅读次数:272
C#父类对象和子类对象之间的转化
1. 子类到父类 Chinese c = new Chinese(); Person p1 = c; //从变量c看是一个中国人,所以可以把人的标签贴上去2. 父类到子类 Chinese c2 = p1; //从变量p1看是一个人,不能随便把中国人的标签贴上去 不成功,必须显式转化如下,两种...
分类:其他好文   时间:2014-07-03 20:52:55    阅读次数:245
C#中属性简写原理
1. 属性简写时不能只有get或者set 原因: 如果只有get,那么没有办法给其赋值,所有也就没法get到值; 如果只有set,没有意义,因为根本没法获取到这个值。
分类:其他好文   时间:2014-07-03 20:54:53    阅读次数:175
session_write_close() 用法
1.需要session控制的大文件下载,防止因为占用session文件时间太久,导致其他页面的session无法执行session_write_close() worked as a lifesaver for me when automatically uploading files to a u...
分类:其他好文   时间:2014-07-03 20:55:34    阅读次数:217
输出随机认证码图片
1 package cn.itcast.response; 2 3 import java.awt.Color; 4 import java.awt.Font; 5 import java.awt.Graphics; 6 import java.awt.Graphics2D; 7 ...
分类:其他好文   时间:2014-07-03 20:56:18    阅读次数:293
领域驱动模型和以数据为中心模型的一些思考
假设有如下业务逻辑:我要搬到新地方去工作。 代码1:class Player{public: void setAddr(string name); void setJob(string job);private: string _name; string _job;}代码2:class Pl...
分类:其他好文   时间:2014-07-03 20:56:55    阅读次数:232
Tornado 代码说明
1 class FaultyInfoHandler(tornado.web.RequestHandler): 2 def get(self): 3 import xmlrpc.client 4 s = xmlrpc.client.ServerProxy(Lo...
分类:其他好文   时间:2014-07-03 12:09:31    阅读次数:272
Linq知识小结
Linq语法小结:有两种形式的语法可供我们在写Linq查询时使用,分别是“查询语法”、“方法语法”。1)先看个列子,有个直观认识 int[] arr = { 12, 2,45,34,23,18,4}; //查询语法形式(推荐使用这种)、返回的是一个可枚举类型 IEnumerable resul...
分类:其他好文   时间:2014-07-03 20:58:49    阅读次数:223
leetcode 题解:Remove Duplicates from Sorted Array(已排序数组去重)
题目:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space fo...
分类:其他好文   时间:2014-07-03 20:58:08    阅读次数:248
[LeetCode]Linked List Cycle II解法学习
问题描述如下:Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra s...
分类:其他好文   时间:2014-07-03 21:00:48    阅读次数:401
字符串之间进行比较
1. 逐个比较字符的ASSCII码值strcmpstrcasecmp 不区分大小写“==”也是这个比较方式,只是不能返回数字,只能判断大小。2. 字母部分按ASSCII码值比较,数字部分按自然排序(数字会尽可能地取到最大)strnatcmpstrnatcasecmp3. 逐个比较前n个字符的ASSC...
分类:其他好文   时间:2014-07-03 21:03:54    阅读次数:239
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!