<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
</head>
<body>
<div id="app">
</div>
<script type="text/javascript">
new Vue({
el: "#app",
data: {
list: []
},
computed:{
tempList: function(){
let arr = [];
for(let i in this.list){
if(this.list[i].isShow) arr.push(this.list[i]);
}
return arr;
}
},
created() {
alert(returnCitySN['cip'] + returnCitySN['cname']);
}
})
</script>
</body>
</html>