cona.addEventListener("touchmove",function(event){
event.preventDefault();//阻止其他事件
// 如果这个元素的位置内只有一个手指的话
if (event.targetTouches.length == 1) {
var touch = event.targetTouches[0]; // 把元素放在手指所在的位置
cona.style.left = touch.pageX + 'px';
cona.style.top = touch.pageY + 'px';
a.floatx=touch.pageX;
a.floaty=touch.pageY;
}
});