JS
代码varvRbtid=document.getElementById("rbtid");//得到所有radiovarvRbtidList=vRbtid.getElementsByTagName("INPUT");for(vari=0;i<vRbtidList.length;i++){if(v...
分类:
Web程序 时间:
2014-05-09 04:07:26
阅读次数:
333
NSString *temp = [textField.text
stringByTrimmingCharactersInSet:[NSCharacterSet
whitespaceCharacterSet]];
//看剩下的字符串的长度是否为零
if ([temp
length]!=0) {
...
}...
分类:
其他好文 时间:
2014-05-08 17:14:15
阅读次数:
502
#import int main(){/* 1.NSRange/CGRange
2.NSPoint/CGPoint 3.NSSize/CGSize 4.NSRect/CGRct *///
NSRange/CGRange(location,length)NSString *str = @"i love...
分类:
其他好文 时间:
2014-05-08 14:51:00
阅读次数:
325
一次通过: 1 public class Solution { 2 public int
romanToInt(String s) { 3 int sum = 0; 4 int[] num = new int[s.length()]; 5 if...
分类:
其他好文 时间:
2014-05-08 08:24:26
阅读次数:
233
1.基础
Context context = getApplicationContext();
CharSequence text = "Hello toast!";
int duration = Toast.LENGTH_SHORT;
Toast toast = Toast.makeText(context, text, duration);
toast.show();
当然也可以将方...
分类:
移动开发 时间:
2014-05-08 04:19:04
阅读次数:
357
因为/u0022表示的是"所以本质上是:System.out.println("a".length()+"b".length());//本质上是这样的
分类:
其他好文 时间:
2014-05-07 15:31:07
阅读次数:
266
Given a sorted array, remove the duplicates in
place such that each element appear onlyonceand return the new length.Do not
allocate extra space for a...
分类:
其他好文 时间:
2014-05-07 14:07:56
阅读次数:
345
inline static NSData* encodeBCD(NSString *value){
//NSString *value = @"123456";
NSMutableData *vdata = [[NSMutableData alloc] init];
__uint8_t bytes[1] = {6};
[vdata appendBytes:&bytes length:1...
分类:
移动开发 时间:
2014-05-07 12:28:39
阅读次数:
404
inline static UIColor* getColorFromHex(NSString *hexColor)
{
if (hexColor == nil) {
return nil;
}
unsigned int red, green, blue;
NSRange range;
range.length = 2;
...
分类:
移动开发 时间:
2014-05-07 11:48:26
阅读次数:
327
一、字符串函数
(1)、计算字符串个数
语法:char_length(string)
例子:selectchar_length(user_name)fromgonda;
(2)、计算字节长度
语法:length(string)
例子:selectlength(name)fromstudent;
(3)、合并字符串函数
语法:concat(s1,s2)默认不定义分割符号
举例:selectconca..
分类:
数据库 时间:
2014-05-06 20:31:36
阅读次数:
376