摘要: rect( x, y, width, height ) 绘制矩形 fillRect( x, y, width, height ) 绘制被填充的矩形 strokeRect( x, y, width, height ) 绘制矩形(无填充) clearRect( x, y, width, height ) 清除指定的矩形内的像素 fill() 填充当前绘图(路径) stroke... 阅读全文
posted @ 2018-03-08 17:47 if511 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 如图所示:点击HTML+css3跳转后,给其添加如图样式: 1 2 3 4 5 6 7 8 9 10 var currUrl = window.location.href; var currStyle = function (links){ links.each(function(){ var ur 阅读全文
posted @ 2018-03-08 14:50 if511 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 设置或获取对象指定的文件名或路径。 <script>alert(window.location.pathname)</script> 设置或获取整个 URL 为字符串。<script> alert(window.location.href);</script>设置或获取与 URL 关联的端口号码。< 阅读全文
posted @ 2018-03-07 18:05 if511 阅读(1109) 评论(0) 推荐(0) 编辑