上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页

2020年4月8日

js 监听滚动条

摘要: $(document).scroll(function() { var scroH = $(document).scrollTop(); //滚动高度 var viewH = $(window).height(); //可见高度 var contentH = $(document).height() 阅读全文

posted @ 2020-04-08 10:55 信奉上帝的小和尚 阅读(471) 评论(0) 推荐(0)

js 修改获取url参数

摘要: function changeURLArg(url,arg,arg_val){ var pattern=arg+'=([^&]*)'; var replaceText=arg+'='+arg_val; if(url.match(pattern)){ var tmp='/('+ arg+'=)([^& 阅读全文

posted @ 2020-04-08 10:54 信奉上帝的小和尚 阅读(343) 评论(0) 推荐(0)

2020年4月7日

jquery调用百度api连接实现网页实时刷新汇率

摘要: // 配置定时器,实时刷新沙币的汇率 setInterval(exchange, 1000); function exchange() { $.ajax({ type: "get", url: "https://sp0.baidu.com/8aQDcjqpAAV3otqbppnN2DJv/api.p 阅读全文

posted @ 2020-04-07 13:24 信奉上帝的小和尚 阅读(915) 评论(0) 推荐(0)

2020年4月3日

xadmin 小感叹号详情页面url参数修改(为了带上自定义参数)

摘要: 1.修改源码 # 地址 xadmin/plugins/details.py # 大概在49行 def result_item(self, item, obj, field_name, row): if (self.show_all_rel_details or (field_name in self 阅读全文

posted @ 2020-04-03 18:04 信奉上帝的小和尚 阅读(1067) 评论(0) 推荐(0)

Xadmin自定义detail小感叹号显示在列上面

摘要: 1.修改源码 # 路径\xadmin\plugins\details.py # 大概在18行左右 def result_item(self, item, obj, field_name, row): if (self.show_all_rel_details or (field_name in se 阅读全文

posted @ 2020-04-03 17:44 信奉上帝的小和尚 阅读(379) 评论(0) 推荐(0)

xadmin 自定义actions

摘要: 1.编写actions from xadmin.plugins.actions import BaseActionView from django.contrib import messages class ClaimAction(BaseActionView): ''' 批量认领功能 ''' # 阅读全文

posted @ 2020-04-03 17:06 信奉上帝的小和尚 阅读(582) 评论(0) 推荐(0)

xadmin 添加自定义权限

摘要: 1.设置一个代理模型 # 普通模型 class Goods(models.Model): pass # 代理模型 class ClaimGoods(Goods): class Meta: verbose_name = "代理模型" verbose_name_plural = verbose_name 阅读全文

posted @ 2020-04-03 16:16 信奉上帝的小和尚 阅读(678) 评论(0) 推荐(0)

2020年4月2日

uiautomator2+雷电模拟器

摘要: 1.雷电模拟器设置网络桥接 2.安装uiautomator2 pip install --pre uiautomator2 pip install pillow 3.初始化 python -m uiautomator2 init 安装完成,设备上会多一个ATX的应用。 打开之后可以看到手机IP 4. 阅读全文

posted @ 2020-04-02 21:50 信奉上帝的小和尚 阅读(3080) 评论(0) 推荐(0)

2020年4月1日

Centos7安装

摘要: 1.选择安装 2.网络配置 3.设置网卡默认开启 4.设置IP 5.分区 基本分区方案: 1. 通用型 /boot 》200M /swap 》 内存小于8G 给 内存的1.5倍 内存大于8G 给8G~16G / 》 剩下的都给跟目录 2.数据型 /boot 》200M /swap 》 内存小于8G 阅读全文

posted @ 2020-04-01 21:14 信奉上帝的小和尚 阅读(112) 评论(0) 推荐(0)

在安装系统时修改Centos7的网卡命名方式

摘要: 阅读全文

posted @ 2020-04-01 20:58 信奉上帝的小和尚 阅读(328) 评论(0) 推荐(0)

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页

导航