2020/1/19

python获取chrome浏览器cookie

def getcookiefromchrome(host='.10086.cn'): cookiepath=os.environ['LOCALAPPDATA']+r"\Google\Chrome\User Data\Default\Cookies" sql="select host_key,name,encrypted_value from cookies where hos…

  • python
  • 2020/1/19
  • helei
  • 618
  • 2020/1/19

    yii去掉url里面的index.php

    config/main.php 取消注释/添加 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ ], ], index.php同级目录下创建.htaccess文件 Options +FollowSymLinks Index…

  • yii
  • 2020/1/19
  • helei
  • 707
  • 2020/1/3

    js实现拖拽上传

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible"…

  • JavaScript
  • 2020/1/3
  • helei
  • 642
  • 2019/12/28

    js复制到粘帖板

    var Url2=document.getElementById("biao1"); Url2.select(); // 选择对象 document.execCommand("Copy");

  • JavaScript
  • 2019/12/28
  • helei
  • 607
  • 2019/12/27

    canvas 实现低配版剪刀石头布游戏

    <script src="lufylegend.js-lufylegend-1.10.1/lufylegend-1.10.1.js" type="text/javascript" charset="utf-8"></script> <div id="mylegend"> </div> <script type="text/javascript"> init(…

  • canvas
  • 2019/12/27
  • helei
  • 1,024
  • 2019/12/26

    windows安装mysql

    1.下载解压 2.解压目录创建my.ini [mysql] 设置mysql客户端默认字符集 default-character-set=utf8 [mysqld] 设置3306端口 port = 3306 设置mysql的安装目录 basedir=E:\program\mysql-8.0.13-winx…

  • mysql
  • 2019/12/26
  • helei
  • 910
  • 2019/12/26

    fiddler保存url到本地

    1 打开fiddler scriptEditor 2 ctrl+f搜索OnBeforeRequest 3 在函数里面加入代码 if (oSession.HostnameIs("域名")&& (oSession.uriContains("期望值")||oSession.uriContains("期望值"))){ …

  • fiddler
  • 2019/12/26
  • helei
  • 727