淘宝 微信 app内 防止页面上下滑动
在页面最下面加代码 1document.addEventListener('touchmove', function(e){e.preventDefault()}, false);
梦
刚刚做了个奇怪的梦可能是外太空的一个山上,一群长全身都是脚的虫子一样的巨大外星人在休息,他们有进化但似乎进化程度并不高,不过他们也发现进化对种族的重要,并且他们的科技发现吃掉更进化的个体将能促进自身和后代进化。一个进化的虫子外星人足够被一个小外星部落吃掉从而促进群体的进化。于是阴谋上演,一群外星人射下埋伏,并把他们进化的一对父子骗进去,突然一声令下,粗大剪和刀插到父子身上,悲鸣回荡,进化的外星人求助但是没用。。这个部落的每个人将获得进化这似乎在问我们,这对父子有错吗?其它外星人参与谋杀有错吗?但是作为群体行为他们有错吗?当群体的利益侵犯到少数个体的权益时,就能牺牲个体吗?
vscode vsc php开发环境
大概需要安装3个插件 中文界面 1Chinese (Simplified) Language Pack for Visual Studio Code 代码提示 1PHP Intelephense 代码格式化 1phpfmt 代码运行 1Code Runner 代码注释 1PHP DocBlocker
vscode 编译 typescript
根据向导创建 tasks.json然后选择 1TypeScript - tsconfig.json
vscode ts typecho tsc版本不同
安装vscode编译ts会出现如下错误 1版本不匹配! 全局 tsc (2.0.3) != VS Code 的语言服务(2.2.2)。可能出现不一致的 解决方法 1npm list -g typescript
fiddler 手机抓包
http://jingyan.baidu.com/article/03b2f78c7b6bb05ea237aed2.htmlhttp://blog.csdn.net/idlear/article/details/50999490 启动Fiddler,打开菜单栏中的 Tools > Fiddler Options,打开“Fiddler Options”对话框。 在Fiddler Options”对话框切换到“Connections”选项卡,然后勾选“Allow romote computers to connect”后面的复选框,然后点击“OK”按钮。 手机上代理主机为电脑ip 端口为 8888 https 证书 用safari访问 http://ip:8888 下载安装描述文件 IOS11依次打开通用-关于本机-证书信任设置,开启信任即可(默认是不信任的!!!) 安卓同理
thinkphp5 phpstudy 显示 No input file specified 解决办法
这是由于运行模式导致的修改入口处的配置 12345678910111213<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f #apacheHanlder模式 #RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] #fastCGI模式 RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]</IfModule>
chrome 插件制作 要点
通过set get保护属性值,修改浏览器navigator.platform 1var actualCode = "Object.defineProperty(navigator,'platform',{get:function(){return 'Android';}});"; 向页面注入js 1234var s = document.createElement('script');s.textContent = actualCode;document.documentElement.appendChild(s);s.remove();
array_column 从多维数组中取出某个字段
array_column() 返回输入数组中某个单一列的值。 http://www.w3school.com.cn/php/func_array_column.asp 实例 123456789101112131415161718192021// 表示由数据库返回的可能记录集的数组$a = array( array( 'id' => 5698, 'first_name' => 'Bill', 'last_name' => 'Gates', ), array( 'id' => 4767, 'first_name' => 'Steve', 'last_name' => 'Jobs', ), array(...
typecho 使用要点
可用常量 以下常量定义在config.inc.php即可 1define('__TYPECHO_DEBUG__', true); 伪静态 Apache配置 1234567<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 [L] </IfModule> Nginx配置 1234567location / { index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^(.*)$ /index.php/$1 last; break; }} ...