有一代码问题请教下各位
下面这个下拉菜单,所展示的城市在代码中找不到,不知道是怎么修改,有懂的吗?<!--phone 企业预约start-->
<div class="enterIpt" id="shenqing">
<div class="ipts">
<input type="text" value="企业名称 :" class="ipttext" readOnly="true"/>
<input type="text" class="qiyename uc" maxlength="20" />
</div>
<div class="ipts">
<input type="text" value="所在城市 :" class="ipttext" readOnly="true"/>
<!--<select class="phonecitys uc">-->
<select class="phonecitys uc"onchange="citylisclick('phone')">
<option></option>
</select>
</div>
<div class="ipts">
<input type="text" value="建筑面积 :" class="ipttext" readOnly="true"/>
<select class="phonemesure uc">
<option></option>
</select>
</div>
<div class="ipts">
<input type="text" value="手ji号码 :" class="ipttext" readOnly="true"/>
<input type="text" class="qiyephone uc" maxlength="20" />
</div>
<div class="lastipts">
<textarea placeholder="需求备注:" maxlength="200" class="qybeizhu uc"></textarea>
</div>
</div>
<!--phone 企业预约end--> 这个函数的代码在哪 citylisclick('phone') smnh 发表于 2020-4-7 11:41
这个函数的代码在哪 citylisclick('phone')
就是找不到呢 肯定是ajax请求的 在一个JS文件中找到了,不过是链到一个外部网站去的,打开后都是一些字符,如何改成自己想要的文字呢?
以下是打开这个网站出现的内容,怎样做成自己本地的呢?
[{"name":"\u5317\u4eac","value":"beijing"},{"name":"\u4e0a\u6d77","value":"shanghai"},{"name":"\u6210\u90fd","value":"chengdu"},{"name":"\u5e7f\u5dde","value":"guangzhou"},{"name":"\u6df1\u5733","value":"shenzhen"},{"name":"\u9752\u5c9b","value":"qingdao"},{"name":"\u6b66\u6c49","value":"wuhan"},{"name":"\u5929\u6d25","value":"tianjin"},{"name":"\u897f\u5b89","value":"xian"},{"name":"\u5357\u4eac","value":"nanjing"},{"name":"\u676d\u5dde","value":"hangzhou"},{"name":"\u91cd\u5e86","value":"chongqing"},{"name":"\u957f\u6c99","value":"changsha"},{"name":"\u90f4\u5dde","value":"chenzhou"},{"name":"\u6606\u660e","value":"kunming"}] 把出现的内容 存成自己本地的文件来调用 logo设计专家 发表于 2020-4-7 14:45
把出现的内容 存成自己本地的文件来调用
下载下来后,改成html文件,打开显示不出来呢 [
{
"name":"北京",
"value":"beijing"
},
{
"name":"上海",
"value":"shanghai"
},
{
"name":"成都",
"value":"chengdu"
},
{
"name":"广州",
"value":"guangzhou"
},
{
"name":"深圳",
"value":"shenzhen"
},
{
"name":"青岛",
"value":"qingdao"
},
{
"name":"武汉",
"value":"wuhan"
},
{
"name":"天津",
"value":"tianjin"
},
{
"name":"西安",
"value":"xian"
},
{
"name":"南京",
"value":"nanjing"
},
{
"name":"杭州",
"value":"hangzhou"
},
{
"name":"重庆",
"value":"chongqing"
},
{
"name":"长沙",
"value":"changsha"
},
{
"name":"郴州",
"value":"chenzhou"
},
{
"name":"昆明",
"value":"kunming"
}
]
凯特网络 发表于 2020-4-7 15:49
[
{
"name":"北京",
保存后的文件后缀应该用什么呢? 瞅瞅看
页:
[1]
2