$(function () {
$("#btntest").bind("click mouseout", function () {
$(this).attr("disabled", "true");
})
});
$("#btntest").bind("click mouseout", function () {
$(this).attr("disabled", "true");
})
});
2015-12-04
var bol = false;
$("a").on("click",function(){
if (bol ==false) {
$(".li").show(),
$("a").html("简化")
bol = true;
}else if (bol == true) {
$(".li").hide(),
$("a").html("更多")
bol = false;
};
})
$("a").on("click",function(){
if (bol ==false) {
$(".li").show(),
$("a").html("简化")
bol = true;
}else if (bol == true) {
$(".li").hide(),
$("a").html("更多")
bol = false;
};
})
$("input:image").addClass("bg_red"); 也可以
我就不用#frmTest,来打我啊!
我就不用#frmTest,来打我啊!
2015-12-04
$("input:submit").addClass("bg_red"); 一样的效果!
2015-12-04
有轮子的时候不用轮子,能提高工作效率就提高工作效率
你最好去看看这种工具的源码,了解实现方法,不需要总是自己去敲出来,工具这种东西弄出来就是提高工作效率的
不要过分依赖插件,但是能用的时候,不要傻愣不用,非要自己去写
你最好去看看这种工具的源码,了解实现方法,不需要总是自己去敲出来,工具这种东西弄出来就是提高工作效率的
不要过分依赖插件,但是能用的时候,不要傻愣不用,非要自己去写
2015-12-04
<script type="text/javascript">
var $content = "<b>唉,我又变胖了!</b>";
$("#html").text($content);
$("#text").html($content);
</script>
var $content = "<b>唉,我又变胖了!</b>";
$("#html").text($content);
$("#text").html($content);
</script>
2015-12-04
<script type="text/javascript">
$("#a1").attr("href" , "www.imooc.com");
var $url = $("#a1").attr("href");
$("#tip").html($url);
</script>
$("#a1").attr("href" , "www.imooc.com");
var $url = $("#a1").attr("href");
$("#tip").html($url);
</script>
2015-12-04