getjson问题 获取不了数据
<script src="http://apps.bdimg.com/libs/jquery/1.7.2/jquery.min.js"></script>
<body>
<button id="btn1">获取</button>
<ul id="ul"></ul>
<button id="btn2">jqajax</button>
<script>
$(function(){
$('#btn2').on('click',function(){
$.getJSON("abc.json",function(data){
$.each(data,function(index,str){
$("#ul1").append(
"<li>用户名<span>"+str["username"]+"</span>密码<span>"+str["password"]+"</span></li>"
)
})
})
})
})
</script>
json文件
[
{'username':'李四','password':123},
{'username':'王一','password':456},
{'username':'林一','password':135},
{'username':'李四','password':246},
{'username':'三四','password':546},
{'username':'李三','password':146},
{'username':'李五','password':346}
]