一、使用jQuery
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<style type="text/css">
*{
margin: 0px;
padding: 0px;
}
</style>
<script type="text/javascript">
$(function(){
emojis = ["🧡", "💛", "💚", "💙", "💜", "❤", "💕",
"💞", "💓", "💗", "💖", "💘", "💝", "💟", "💌"];
var height=$(window).width() * 1.5;
$('#test').css({
'height':height,
});
$('#test').click(function(e){
var n = ~~(Math.random() * emojis.length);
console.log(n)
var $i=$('<b></b>').text(emojis[n]);
var x=