当执行在Windows系统下修改过的脚本时,会提示存在^M的错误,但是在Linux下直接使用vim打开并不存在。此时可以使用vim -b来打开脚本文件,就可以发现每行的末尾都存在^M。 造成这样的原因是不同的系统使用了不同的换行符。在Windows下文本文件的每一行结尾都有一个回车('\n')和换行 ...
分类:
系统相关 时间:
2020-08-02 22:22:44
阅读次数:
173
BOM是指浏览器对象模型,可以使我们通过JS来操作浏览器,在BOM中为我们提供了一组对象,用来完成对浏览器的操作。 BOM对象 Window — 代表的是整个浏览器的窗口,同时window也是网页中的全局对象 Navigator — 代表的当前浏览器的信息,通过该对象可以来识别不同的浏览器 Loca ...
分类:
编程语言 时间:
2020-08-02 12:49:26
阅读次数:
110
只刷新iframe窗口里的内容 $(".load").click(function(){ //获取iframe里面的子窗口对象contentWindow $("iframe")[0].contentWindow.location.reload(true); }) ...
分类:
其他好文 时间:
2020-08-01 21:31:29
阅读次数:
89
1 import sys 2 from PyQt5.QtCore import * 3 from PyQt5.QtGui import * 4 from PyQt5.QtWidgets import * 5 6 class Form(QDialog): 7 def __init__(self): 8 ...
分类:
其他好文 时间:
2020-08-01 14:36:36
阅读次数:
125
IIS下运行.NET Core程序 1.服务器上必须要安装 WindowsHosting WindowsHosting 下载地址:https://dotnet.microsoft.com/download/dotnet-core/3.1 2.编辑"应用程序池"的"基本设置",修改".NET Fram ...
pip install supervisor pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --upgrade supervisor echo_supervisord_conf > /etc/sup ...
分类:
其他好文 时间:
2020-07-31 12:28:12
阅读次数:
70
下载安装程序 wget https://www.apachefriends.org/xampp-files/7.4.8/xampp-linux-x64-7.4.8-0-installer.run (window版本:https://www.apachefriends.org/xampp-files/ ...
分类:
系统相关 时间:
2020-07-30 22:10:03
阅读次数:
93
在我们测试APP过程中,经常会在发现bug的时候,不知道把bug分配给移动开发工程师好还是后端工程师好,也会出现分配错误的情况,所以如何快速的定位bug呢,那需要抓APP的请求就知道了。 一、Fiddler 1、下载和安装 下载地址:官网 2、Fiddler设置 启动Fiddler,打开Tools- ...
分类:
其他好文 时间:
2020-07-30 19:46:37
阅读次数:
126
1、单行输入 $k.prompt({ content:'<span>请输入姓名:</span><input type="text" class="kui-window-input" style="width:200px;height:32px;" /> ', onClosed:function(ar ...
分类:
其他好文 时间:
2020-07-30 18:21:06
阅读次数:
107
子系统安装 Windows设置 → 更新与安全 → 开发者选项 → 开发人员模式 控制面板 → 程序 → 启用或关闭Windows功能 → 适用于Linux的Windows子系统 Microsoft Store → 安装Ubuntu 设置用户名和密码 进入bash Win + R cmd Ubunt ...