h5的canvas画布旋转
var one=document.getElementById('one');
var context=one.getContext('2d');
var two=document.getElementById('two');
var contexts=two.getContext('2d');
contexts.beginPath();
contexts.moveTo(0,150);
contexts.lineTo(125,125);
contexts.lineTo(150,0);
contexts.lineTo(175,125);
contexts.lineTo(300,150);
contexts.lineTo(175,175);
contexts.lineTo(150,300);
contexts.lineTo(125,175);
contexts.lineTo(0,150);
contexts.fillStyle='white';
contexts.fill();
context.beginPath();
context.arc(150,150,40,0,2*Math.PI)
context.fillStyle='white'
context.fill()
$.noConflict()
jQuery(function($){
(function (){
var r=0
function op(){
//$('#two').show(1500)
r+=90;
$("two").css({'transform':"rotate("+r+"deg)"});
//$('#two').fadeOut(1500)
}
//setInterval(op,5000)
})();
})