在做移动端项目的时候经常遇到这样一个功能比如: 返回后页面不刷新,一些失效的信息依然显示在页面上。这个问题在iphone手机上会出现,在Android手机上返回时会自动刷新(由于手机机器种类不多,无法做更多测试,欢迎补充)。 为了解决这个问题实验了很多解决办法用计时器呀onload呀都不行,后来找到 ...
分类:
移动开发 时间:
2018-12-18 19:49:05
阅读次数:
221
Thus far we have only taken a look at the most basic authentication configuration. Let’s take a look at a few slightly more advanced options for confi ...
分类:
编程语言 时间:
2018-12-17 22:38:49
阅读次数:
234
General support for Java Configuration was added to Spring Framework in Spring 3.1. Since Spring Security 3.2 there has been Spring Security Java Conf ...
分类:
编程语言 时间:
2018-12-17 22:00:53
阅读次数:
251
一、报错信息如下: MySQL启动报错“Bind on TCP/IP port: Address already in use” 分析原因:端口3306 被占用 ps -aux | grep mysql 发现3306 并没有被使用 使用命令: netstat -apn|grep 3306 # net ...
分类:
数据库 时间:
2018-12-17 14:26:31
阅读次数:
199
做项目的时候可能会遇到这种情况: 一个页面的中定义了多个onload事件,那么在此定义window.onload函数的时候可能会不生效或者多个onload之间覆盖的现象. 有的朋友肯定会说用jQuery的$$(document).ready(function(){})(它的另外两种写法:$(docu ...
分类:
Web程序 时间:
2018-12-15 11:56:53
阅读次数:
172
// 这个是监听浏览器回退键的returnButton () { let vm = this; $(document).ready(function () { if (window.history && window.history.pushState) { $(window).on('popsta... ...
分类:
Web程序 时间:
2018-12-14 10:53:05
阅读次数:
990
$(document).ready(function () { var southtable = $("#southtable").DataTable({ language: { url: '/lib/jquery.datatables/js/' + LANG + '.json' }, orderi... ...
分类:
Web程序 时间:
2018-12-13 23:25:29
阅读次数:
632
# https://segmentfault.com/q/1010000010559838 import asyncio import threading import random async def fn(name,qu): while True: print(name,"ready to wo... ...
分类:
其他好文 时间:
2018-12-13 19:29:16
阅读次数:
539
在需要下载的位置,将以下代码复制到页面最下方,就可以实现文件下载了 <script> $(document).ready(function() { var fileName = $("#attaIdPreview li a:first"); if(fileName!=null||fileName!= ...
分类:
Web程序 时间:
2018-12-13 14:27:37
阅读次数:
326