01 2016 档案

摘要:1.图像放大缩小 <script> var cvs = document.getElementById("canvas"); cvs.width = 320 cvs.height = 213; var context = cvs.getContext("2d"); var range = docum 阅读全文
posted @ 2016-01-31 22:08 lunawzh 阅读(488) 评论(0) 推荐(0)
摘要:1.定义画布,取得画布上下文下文 <canvas id="canvas"></canvas> js: var cvs = document.getElementById("canvas"); var context = cvs.getContext('2d'); cvs.width = 1000; 阅读全文
posted @ 2016-01-30 13:26 lunawzh 阅读(296) 评论(0) 推荐(0)
摘要:function drawStar(cxt, x, y, outerR, innerR, rot) { cxt.beginPath(); for (var i = 0; i < 5; i++) { cxt.lineTo(Math.cos((18+i*72-rot)/180*Math.PI)*oute 阅读全文
posted @ 2016-01-29 09:38 lunawzh 阅读(1018) 评论(0) 推荐(0)
摘要:const colors = ["#33B5E5","#0099CC","#AA66CC","#9933CC","#99CC00","#669900","#FFBB33","#FF8800","#FF4444","#CC0000"] 阅读全文
posted @ 2016-01-28 23:00 lunawzh 阅读(1738) 评论(0) 推荐(0)
摘要:做一个简单的 Json实例,从页面获取后台的Json数据1、控制台:public class HomeController : Controller { // // GET: /Home/ public ActionResult Index() ... 阅读全文
posted @ 2016-01-07 09:54 lunawzh 阅读(280) 评论(0) 推荐(0)
摘要:系统中定时执行某个任务是比较常用的功能,如一个部门定期向上级部门上报数据是一个典型的例子,下面就简单说说在.net mvc中如何实现定时执行某个功能的方法。1、首先修改Glocal.asax文件,在Application_Start方法最下面加入://定义定时器//1000表示1秒的意思System... 阅读全文
posted @ 2016-01-06 11:45 lunawzh 阅读(1161) 评论(0) 推荐(0)