常用JavaScript小技巧
摘要:
1. 检查一段字符串是否全由数字组成 1<scriptlanguage="Javascript">2<!--3functioncheckNum(str)4{5returnstr.match(//D/)==null6}7alert(checkNum("1232142141"))8alert(checkNum("123214214a1"))9-->10</script&g... 阅读全文
posted @ 2006-04-27 13:37 客家浪子 阅读(230) 评论(0) 推荐(0) 编辑