08 2017 档案
遍历文件夹内所有文件
摘要:File file = new File("文件夹路径"); File[] tempList = file.listFiles();for (int i = 0; i < tempList.length; i++) {System.out.println(tempList[i].getName());}
阅读全文
'weinre' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 解决方案
摘要:使用 npm install -g weinre 全局安装 weinre,weinre 安装目录是:C:\Users\Administrator\AppData\Roaming\npm 需要配置环境变量,在系统变量path中加上以下路径:
阅读全文
解决图片缓存导致页面刷新无效果问题
摘要:在图片路径加上:?random = '随机数(时间戳等)' <img src="abc.jpg?random=随机数(时间戳等)" />
阅读全文
h5手机点击返回键,刷新页面
摘要:在js中,加上一下代码: window.onpageshow = function(event) {if (event.persisted) {window.location.reload();}};
阅读全文
weinre 远程调试 安装 配置
摘要:1、第一种方法:安装:npm install -g weinre 2、第一种方法:开启本地监听服务器(修改端口,默认端口是8080):在cmd中运行: weinre --httpPort 8101 --boundHost 192.xx.xx.xxx(本机的ip地址) 3、访问weinre及在页面上调
阅读全文
浙公网安备 33010602011771号