摘要: 【程序7】题目:输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。 1 function Statistics1(str) { 2 var strcount = 0; 3 var spacecount = 0; 4 var numcount = 0; 5 var othercount = 0; 6 7 for (var i = 0; i < str.length; i++) { 8 var tmpstr = s... 阅读全文
posted @ 2012-06-10 22:52 前端咖 阅读(288) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>提示框</title> 5 <style type="text/css"> 6 #pop{width: 400px;border: 1px solid #666;margin: 100px auto 0px;border-radius: 8px;} 7 #pop .title{height: 40px;line-height: 40px;overflow: hidden;border-bottom: 1px sol 阅读全文
posted @ 2012-06-10 00:47 前端咖 阅读(290) 评论(0) 推荐(0)