`
ityehao
  • 浏览: 860 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
<canvas id="cvs" width="800" height="600"></canvas> <script>     // 想要在Cavnas上面画图,就需要用JavaScript     //    2. 取得绘图工具:我们可以从canvas标签上获取一个绘图对象(上下文对象),     // 绘图的各种方法和设置,都放在这个对象上.     var cvs = document.getElementById('cvs');     var ctx = cvs.getContext(' ...
// 实现 text 方法 itcast.fn.extend({ text: function(txt) { // if条件中的代码表示读取 if(txt === undefined) { var arr = []; // 如果支持这两个属性中的任何一个 if("innerText" in this[0] || "textContent" in this[0]) { // 要把获取到的所有元素的内容都要去除 this.each(function() { arr. ...
Global site tag (gtag.js) - Google Analytics