2020/11/3

apache http自动跳转到https

1、先打开url重定向支持(默认开启) 1)打开Apache/conf/httpd.conf,找到 #LoadModule rewrite_module modules/mod_rewrite.so 去掉#号。    2)找到你网站目录的<Direct…

  • Apache
  • 2020/11/3
  • helei
  • 1,565
  • 2020/11/2

    js css让img元素图片自动旋转

    var rotateVal = 0 // 旋转角度 var InterVal // 定时器 function conMusic(){     //var audio = document.querySelector(&…

  • css html JavaScript
  • 2020/11/2
  • helei
  • 1,343
  • 2020/10/30

    获取取scrollTop最大值

    scrollHeight-offsetHeight 文档高度 - 可视区域高度 = 滚动高度。

  • html JavaScript
  • 2020/10/30
  • helei
  • 1,711
  • 2020/10/30

    audio 手机浏览器无法自动播放问题

    //--创建触摸监听,当浏览器打开页面时,触摸屏幕触发事件,进行音频播放 document.addEventListener('touchstart', function () {     function audioAutoPlay() {        …

  • audio html
  • 2020/10/30
  • helei
  • 1,629
  • 2020/10/29

    linux apache httpd-vhost.conf只有第一个生效,VirtualHost只有第一个生效

    原因一:httpd.conf中NameVirtualHost *:80被注释 原因二(也是我自己的原因,弄了整整一下午总算找到原因了): <VirtualHost *:80> ServerAdmin www.95app.top DocumentRoot "/var/w…

  • Apache linux
  • 2020/10/29
  • helei
  • 1,350
  • 2020/10/22

    ​python list去重/PYTHON 列表排序

    去重     #word为原列表 resWord为去重后的列表     resWord = list(set(word))     print(resWord) 排序 resWord.sort()

  • python
  • 2020/10/22
  • helei
  • 1,752
  • 2020/10/22

    python替换字符串中的字符/字母/python正则替换字符串中的字符/字母

    import re string = "哈哈哈sfasfafasf哈哈哈" #replace(oldStr,newStr) newString = string.replace("哈哈哈"," ") #正则替换非字母的字符 re.sub(r"([^a-z])"," &…

  • python
  • 2020/10/22
  • helei
  • 1,607