摘要: 内置对象 1、Date var now = new Date(); 获取当前时间 now.toUTCString() 转化为字符串格式 now.getFullYear() 年 now.getMonth() 月要+1 now.getDate() 日 now.getDay() 一周的某一天 now.ge 阅读全文
posted @ 2016-05-18 22:58 tpzple 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 画圆ctx.beginPath(); context.arc(x,y,r,sAngle,eAngle,counterclockwise); x:圆的中心的 x 坐标。 y:圆的中心的 y 坐标。 r:圆的半径。 sAngle:起始角,以弧度计。(弧的圆形的三点钟位置是 0 度)。 eAngle:结束 阅读全文
posted @ 2016-05-18 22:58 tpzple 阅读(173) 评论(0) 推荐(0) 编辑