![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jquery
G-Q
这个作者很懒,什么都没留下…
展开
-
jquery中prop()方法和attr()方法的区别
首先:attr适用传入属性,返回属性值 例如:class="demo" attr('class') == demo prop是jquery1.6中新加了一个方法prop(),他的返回值只有true和false。对于有的浏览器有的输入disabled,checked就可以了,而有的要写成disabled = "disabled",checked="checked",比如用a原创 2016-11-05 20:42:28 · 248 阅读 · 0 评论 -
AngularJS (一)
angular是Google公司开发的。MVVM:数据模型双向绑定MVC:model view controller。优势低耦合。ng-xxx 都是指令。AngularJS 通过内置的指令来为应用添加功能。AngularJS 允许你自定义指令。AngularJS 表达式写在双大括号内:{{ expression }}。ng-bind="变量"的作用和{{变量}}是一样的都是为了输出原创 2016-11-05 21:32:03 · 242 阅读 · 0 评论 -
jQuery下Ajax 执行回调函数的原理success、error、complete
举个栗子:$.ajax({ type:"get", url:"data.json", async:true, success:funcion(data){ console.log(data); } error:function(){ console.log("error"); } c原创 2017-10-12 15:21:36 · 1433 阅读 · 0 评论 -
无缝跑马灯图片轮播
<!DOCTYPE html><html><head> <title>无缝跑马灯图片轮播</title> <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> <styl原创 2018-04-17 16:27:43 · 3392 阅读 · 0 评论