`
ning_wenchao
  • 浏览: 2467 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
<body ng-app="n1.app"> <div ng-controller="Mathcontroller">     人员姓名:<input type="text" ng-model="data.name" id = "txtone">     电话号码:<input type="text" ng-model="data.phone" id = "txttwo">     < ...
<canvas id ="cvs" width="800" height="600"></canvas> <script>     var cvs = document.getElementById("cvs");     var ctx = cvs.getContext('2d');     var imgUrls = [ //存图片名称 和图片路径的对象         {name: 'birds', path: './res/birds.png'},         {na ...
//封装框架类操作   1. addClass(添加类) //                 2.removeClass(移除样式) //                 3. hasClass(判断是否有这个样式) //                 4.toggleClass(有这个类就移除,没有就添加个新的) //例:itcast(div).addClass("类名") //样式操作模块     itcast.fn.extend({        css:function(name,value){            //第二个参数没有传入 ,而第一个参 ...
//itcast 是自己封装的框架名称 itcast.fn.extend({ css:function(name,value){ // 只有一个参数的情况时肯定是查询 if(value ===undefined && typeof name ==="string"){ // 两种兼容方式,获取样式兼容 如ie 和其他浏览器 if(window.getComputedStyle){ //其他浏览器 var styles = window
Global site tag (gtag.js) - Google Analytics