| 类别: | Javascript, function |
|---|---|
| 标签: | vbs, right, js, fRight |
| 摘要: | .. |
| 正文: |
alert(fRight("abcde", 4)) function fRight(sStr, iRight) { // shawl.qiu code, return string if(!iRight) return sStr; return sStr.slice(sStr.length-iRight); } // end function fRight(sStr, iRight) 2007 年 09 月 19 日, 15 时 26 分 17 秒 984 毫秒 function fRight(sStr, iRight) { // shawl.qiu code, return string if(!sStr) { if(typeof(sStr)=="number") sStr = "0" else sStr = ""; } if(typeof(sStr)=="number") sStr+=""; if(!iRight) return sStr; return sStr.slice(sStr.length-iRight); } // end function fRight(sStr, iRight) |
| 文章相关信息: | |
|---|---|
| 主题: | js 模拟 vbs right 函数 |
| 发表者: | shawl.qiu |
| 电子邮件: | shawl.qiu@gmail.com |
| QQ: | 908202921 |
| MSN: | btbtd@msn.com |
| Homepage: | http://www.btbtd.org/ |
| Blog: | http://blog.csdn.net/btbtd/ |
| 发表日期: | 2007-9-19 15:16:51 |
| 更新日期: | 2007-9-19 15:16:51 |
| 来源引用: | shawl.qiu CSharp DotNet 个人资料管理系统 |
| 引用本页: | http://gi.2288.org/mod/code/display/Default.aspx?aid=626 |