跨域 解决跨域问题一般有两种思路: CORS 在后端服务器设置 HTTP 响应头,把你需要运行访问的域名加入加入 Access-Control-Allow-Origin中。 jsonp 把后端根据请求,构造 json 数据,并返回,前端用 jsonp 跨域。 这两种思路,本文不展开讨论。 需要说明的 ...
分类:
其他好文 时间:
2020-06-26 01:01:26
阅读次数:
98
O(∩_∩)O哈哈~ 在学习 Mysql 的时候又遇到了新问题了 o(╥﹏╥)o 当我在准备为用户授权的时候: grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option; 遇到如下的情况o(╥ ...
分类:
数据库 时间:
2020-06-25 21:32:59
阅读次数:
81
一、设置套接字选项(zmq_setsockopt)int zmq_setsockopt(void *socket, int option_name, const void *option_value, size_t option_len);功能:设置套接字选项参数:socket:设置的套接字opti ...
分类:
其他好文 时间:
2020-06-25 09:29:37
阅读次数:
196
netlink_kernel_create内核函数用于创建 内核socket用用户态通信 static inline struct sock * netlink_kernel_create(struct net *net, intunit, struct netlink_kernel_cfg *cf ...
分类:
Web程序 时间:
2020-06-24 23:26:13
阅读次数:
100
泛授权方式 数据库本地直接登录上数据库: mysql -h localhost -u root 然后执行以下命令,授权完后直接就可以远程连接上。mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; //赋予任何主机上以r ...
分类:
数据库 时间:
2020-06-24 19:52:35
阅读次数:
54
安装好python2.7 [root@host-10-10-18-131 ~]# ln -s /usr/bin/python2.7 /usr/bin/python [root@host-10-10-18-131 ~]# ln -s /usr/bin/pip2.7 /usr/bin/pip [root ...
分类:
其他好文 时间:
2020-06-24 16:30:53
阅读次数:
78
HTML 网页的结构 WEB标准 WEB标准是网页制作的标准,它不是一个标准,它是根据网页的不同组成部分生成的一系列标准。这些标准大部分由W3C起草发布,也有部分标准由ECMA起草发布。 W3C( World Wide Web Consortium )万维网联盟,创建于1994年是Web技术领域最具 ...
分类:
Web程序 时间:
2020-06-24 16:15:04
阅读次数:
103
1 def _parse_known_args(self, arg_strings, namespace): 2 # replace arg strings that are file references 3 if self.fromfile_prefix_chars is not None: 4 ...
分类:
其他好文 时间:
2020-06-24 14:04:54
阅读次数:
54
transitionDuration:提示框浮层的移动动画过渡时间,单位是 s,设置为 0 的时候会紧跟着鼠标移动。 tooltip: { transitionDuration: 0, }, 官方文档说明: https://echarts.apache.org/zh/option.html#tool ...
分类:
其他好文 时间:
2020-06-24 13:40:46
阅读次数:
218
需求有个折线图,用 echarts 画一下: 上个测试连接:https://echarts.apache.org/examples/zh/editor.html?c=line-stack 记录下 option = { title: { text: '数据趋势' }, tooltip: { trigg ...
分类:
其他好文 时间:
2020-06-24 12:30:22
阅读次数:
69