![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
qq_39161501
这个作者很懒,什么都没留下…
展开
-
jq高德地图的api获取所在城市
//实例化城市查询类 var citysearch = new AMap.CitySearch(); //自动获取用户IP,返回当前城市 citysearch.getLocalCity(function(status, result) { if (status === 'complete' && result.info === 'OK') { if (result &&...原创 2020-12-08 11:56:26 · 788 阅读 · 0 评论 -
js判断手机端和pc端
方法一if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { window.location.href = "wap";} else { window.location.href = "pc";}方法二<script>function browserRedirect() { ...原创 2018-02-26 09:13:33 · 6879 阅读 · 0 评论 -
PHP接收 ajax提交文件
1、html form表单 2、jq ajax提交代码3、php接收文件 4、查看var_dump打印的数据 network原创 2018-12-20 15:29:05 · 1697 阅读 · 0 评论 -
jq 复选框全选和反选功能
html:<input type="checkbox" name="perm_all" class="perm_all"> jq:$('.perm_all').change(function(){ $('.perm_check').attr('checked',this.checked); });原创 2018-12-25 11:52:36 · 306 阅读 · 0 评论