vue跨域获取自定义头标签

在使用CORS方式跨域时,浏览器只会返回以下默认头部header: response header Content-Language Content-Type Expires Last-Modified Pragma 如果你想在客户端app中获取自定义的header信息,需要在服务器端header中添加...

mpvue使用scroll-view

mpvue 使用方法 注意点 1. <scroll-view :style="{'height': '300px'}"></scroll-view> 要设置高度 2. 举例:小程序原先方法是bindscrolltolower,在mpvue当中要写成@scrolltolower template 部分 <...

nginx防止盗链

nginx如何设置防盗链 如果您使用的是默认站点,也就是说,您的站点可以直接输入服务器IP访问的,使用root登录,修改 /usr/local/nginx/conf/nginx.conf 这个配置文件。 如果您新建了站点,那么修改/usr/local/nginx/conf/vhost/你的域名.conf...

linux防火墙开放80,3306,21,443端口

大家都知道服务器里的一些端口和防火墙之类的,在使用过程中能够起到很重要的作用,这里整理了一些关于配置防火墙,开启80端口、3306端口 vi /etc/sysconfig/iptables -A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j A...