导入js文件到页面
<script src="../../js/jquery.js"></script>
<script src="../../js/city-picker.data.js"></script>
<script src="../../js/city-picker.js"></script>
这段代码就是选择城市的代码,把它放在你所要显示城市的td里面
<div class="docs-methods" style="width:100%;">
<form class="form-inline">
<div id="distpicker">
<div class="form-group">
<div style="position: relative;">
<input id="city-picker3" class="form-control" readonly type="text" value="" data-toggle="city-picker">
</div>
</div>
</div>
</form>
</div>
/* 回显城市 */
var area=json.prjArea;
if(area!=''&&area!=null){
var province=area.split("/")[0];
var city=area.split("/")[1];
var district=area.split("/")[2];
$("#edit_city").citypicker("reset");
$("#edit_city").citypicker("destroy");
$("#edit_city").citypicker({
province:province,
city:city,
district:district
});
}