All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
asp-php-js中的split使用方法详解_php资料_编程技术

Writer: delv Article type: Programming skills(编程技巧) Time: 2013/12/29 4:38:43 Browse times: 346 Comment times: 0

asp-php-js中的split使用方法详解_php资料_编程技术


Head photo

Go homepage
Upload pictures
Write articles

asp\php\js中的split使用方法详解_php资料_编程技术-你的首页-uuhomepage.com

今天笔者遇到一个混乱的问题,因为一段时间做asp、一段时间做php,脑子弄乱了。今天有个小项目中遇到,将特定格式的字符串转换成数组并输出。其实这个不难,但是笔者还是终结一下,以便后用!

字符串:arg=a,b,c,d,e,f,g

javascript中:写法为 tmp=arg.split(',');

php中:写法为 $tmp=split(",",$arg);

asp中:写法为 tmp=split(arg,",");

大体看上去差不多,但是有很多细节要注意的哦。






There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.