我的就厉害了 19 -4 = 0,应该就是默认为$("#Test1")中为字符串的获取的结果, +$("#Text1").val()就好了~~~~~~
2017-10-16
<ol id="list"></ol>
//引入jquery
<script>
$(function(){
var data = [{"name":"xiaoming","age":"12"},{"name":"dabao","age":"13"},];
$.each(data,function(index,data){
$("#list").append("<li>姓名:" +data["name"] + "年龄:" + data.age+"</li>" });
});
</script>
//引入jquery
<script>
$(function(){
var data = [{"name":"xiaoming","age":"12"},{"name":"dabao","age":"13"},];
$.each(data,function(index,data){
$("#list").append("<li>姓名:" +data["name"] + "年龄:" + data.age+"</li>" });
});
</script>
告诉各位一个好消息http://www.imooc.com/data/check_f.php进去看看源码,就只有等于0
2017-10-06
$this.attr("disabled", "true");
2017-10-06
本地用http://www.imooc.com/data/fruit_part.html的话就违反了同源策略,也就是跨域了
2017-10-04