实现带参数、返回值类型声明的js函数:类型定义:window.Str=Type.Str=Type.define('STRING',Type.isStr);varPer=Type.define('PERSON',function(p){returnp&&p.type==='person'&&p.nam...
分类:
编程语言 时间:
2014-07-28 23:50:44
阅读次数:
413
关于js的replace替换msgContent = msgContent.replace("a","b"); 这样的替换只会把第一个a替换成b,不会替换全部的a,如我输入 aba结果为:bba//替换所有字符function replaceAll(str,str1,str2) { var ...
分类:
Web程序 时间:
2014-07-28 19:15:24
阅读次数:
256
translate 是用来替换字符的函数语法: translate(char, from_str,to_str)其中,char是待处理的字符串. from_str是按顺序排列若干个要被替换的字符集合,注意是字符集合而不是字符串。 to_str 是按顺序对应from_str要被替换成的字符集合。例如:...
分类:
数据库 时间:
2014-07-28 19:10:54
阅读次数:
286
头文件:
#include
#include
#include
#include
#include ".\source\common.h"
#include "lxbasic.h"
#define MAX_VEX_NUM 20
#define MAX_STR_LEN 20
#define INFINITY 99...
分类:
其他好文 时间:
2014-07-28 15:59:03
阅读次数:
299
一、什么是应用程序的国际化?
根据当前用户当前移动设备的语言自动将我们的app切换对应语言。
对于个人开发者而言国外市场比国内市场更加有价值些,毕竟国外的版权意识,付费理念较好些。
二、怎么做?
1.本地化应用程序名称
(1)应用程序名称的设置在
InfoPlist.strings文件中,而本地化的InofPlist.str...
分类:
移动开发 时间:
2014-07-28 15:57:33
阅读次数:
335
看第一种情形:用String做字符串连接操作 连接一万次public class Demo_01 { public static void main(String[] args) { String str = "123"; String[] temp = new S...
分类:
其他好文 时间:
2014-07-28 15:27:53
阅读次数:
258
/// /// Sha1 /// /// /// public static string Sha1(string str) { byte[] strres = Enco...
分类:
其他好文 时间:
2014-07-28 15:09:53
阅读次数:
174
1、从左开始截取字符串left(str, length)说明:left(被截取字段,截取长度)例:select left(content,200) as abstract from my_content_t2、从右开始截取字符串right(str, length)说明:right(被截取字段,截取长...
分类:
数据库 时间:
2014-07-28 14:51:53
阅读次数:
325
加了一个验证中文的函数如下:function isChn(str){ var reg = /^[u4E00-u9FA5]+$/; if(!reg.test(str)){ return false; } return true;}
分类:
Web程序 时间:
2014-07-28 14:40:53
阅读次数:
274
/// /// Web 转换MD5 /// /// 字符 /// 32或64位 /// public static string MD5(string str, int //MD5 正常加密 publi...
分类:
其他好文 时间:
2014-07-28 14:32:13
阅读次数:
234