码迷,mamicode.com
首页 > 其他好文 > 详细

判断字符串中字符出现次数

时间:2018-03-22 21:24:32      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:判断字符串   class   bug   cin   ext   doc   letter   doctype   style   

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>txt</title>
	<style>
		p.i{
			letter-spacing: 2px;
			
		}
	</style>
</head>
<body>
	<p></p>
	<script>
	function debug(msg){
		var log = document.getElementById("debuglog");

		if(!log){
			log = document.createElement("div");
			log.id = "debuglog";
			log.innerHTML = "<h1>Debug Log";
			document.body.appendChild(log);
		}
		var pre = document.createElement("pre");
		var text = document.createTextNode(msg);
		pre.appendChild(text);
		log.appendChild(pre);
	}
	
	debug(‘s‘);
	</script>
	
</body>
</html>

  

判断字符串中字符出现次数

标签:判断字符串   class   bug   cin   ext   doc   letter   doctype   style   

原文地址:https://www.cnblogs.com/xiaobaizitaibai/p/8626494.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!