要使用Cookie类必须使用门面方式( think\facade\Cookie )调用 配置文件位于配置目录下的cookie.php文件,无需手动初始化,系统会在调用之前自动进行Cookie初始化工作 1、使用 Cookie // 设置Cookie 有效期为 3600秒Cookie::set('na ...
分类:
Web开发 时间:
2021-06-24 10:39:45
收藏:
0 评论:
0 赞:
0 阅读:
17
当前url:http://localhost:805/test/helloworld.php 1 2 3 4 5 6 7 echo 'SERVER_NAME:'.$_SERVER['SERVER_NAME']; //获取当前域名(不含端口号) echo '<p>'; echo 'HTTP_HOST: ...
分类:
Web开发 时间:
2021-06-24 10:36:53
收藏:
0 评论:
0 赞:
0 阅读:
19
1: 首先我们遇到的问题: 如下图 $("#save").click(function () { var new_permission = transfer.getData('index'); //获取右侧数据 $.ajax({ type: 'POST', url: '/system_save_pe ...
分类:
Web开发 时间:
2021-06-24 10:31:45
收藏:
0 评论:
0 赞:
0 阅读:
29
前言 简单整理一下仓储层。 正文 在共享层的基础建设类库中: /// <summary> /// 泛型仓储接口 /// </summary> /// <typeparam name="TEntity">实体类型</typeparam> public interface IRepository<TEn ...
分类:
Web开发 时间:
2021-06-24 10:18:50
收藏:
0 评论:
0 赞:
0 阅读:
24
寻找web的路径 ( 1 ) 文件查找法 linux: find / -name index.php find / -name index.* windows: for /r d:/ %i in (index.php) do @echo %i for /r d:/ %i in (index.*) d ...
分类:
Web开发 时间:
2021-06-24 00:29:58
收藏:
0 评论:
0 赞:
0 阅读:
22
css的选择器(Selector) “选择器”指明了{}中的“样式”的作用对象,也就是“样式”作用于网页中的哪些元素 基础选择器 ''' * : 通用元素选择器,匹配任何元素 * { margin:0; padding:0; } E : 标签选择器,匹配所有使用E标签的元素 p { color:gr ...
分类:
Web开发 时间:
2021-06-23 23:17:03
收藏:
0 评论:
0 赞:
0 阅读:
34
###背景 umi的项目打包的时候发现时间达到了145.22s,忍不了。。。 ###方案 1、使用Happypack对js进行优化 2、使用terser-webpack-plugin把cpu利用起来 ###开始 ###Happypack作用 Happypack 的作用就是将文件解析任务分解成多个子进 ...
分类:
Web开发 时间:
2021-06-23 22:06:22
收藏:
0 评论:
0 赞:
0 阅读:
29
Nginx在1.9.0版本开始支持tcp模式的负载均衡,在1.9.13版本开始支持udp协议的负载,udp主要用于 DNS的域名解析,其配置方式和指令和http 代理类似,其基于ngx_stream_proxy_module模块实现tcp 负载,另外基于模块ngx_stream_upstream_m ...
分类:
Web开发 时间:
2021-06-23 22:00:47
收藏:
0 评论:
0 赞:
0 阅读:
29
配置文件目录:/etc/apache2/apache2.conf HTTP头 连接与请求 HTTP_USER_AGENTHTTP_REFERERHTTP_COOKIEHTTP_FORWARDEDHTTP_HOSTHTTP_PROXY_CONNECTIONHTTP_ACCEPT REMOTE_ADDR ...
分类:
Web开发 时间:
2021-06-23 21:57:54
收藏:
0 评论:
0 赞:
0 阅读:
17
页面: methods: data: 代码: tabClick(tab) { if (this.activeName == "config") { documents.getVesionByid(this.addinfo.docNumber).then((res) => { if (res.succ ...
分类:
Web开发 时间:
2021-06-23 21:57:02
收藏:
0 评论:
0 赞:
0 阅读:
141
文件上传和下载 一、创建SpringMVC项目 略 二、导入支持的包 <!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload --> <dependency> <groupId>commons-fil ...
分类:
Web开发 时间:
2021-06-23 21:56:25
收藏:
0 评论:
0 赞:
0 阅读:
26
unittest初级 import unittestdef my_sum(a, b): a += 1 b += 2 return a + bclass TestSum(unittest.TestCase): def test_01(self): print(my_sum(2, 1)) def tes ...
分类:
Web开发 时间:
2021-06-23 21:53:20
收藏:
0 评论:
0 赞:
0 阅读:
28
模仿yun登录:def yun_login(username,password): #要请求的路由 url = "http://yun.zenm.vip/iot/account/login/" #需要传的参数(用户名和密码) data = { 'username':'123', 'password' ...
分类:
Web开发 时间:
2021-06-23 21:49:50
收藏:
0 评论:
0 赞:
0 阅读:
18
<!DOCTYPE html><html lang="en"><head>? ? <meta charset="UTF-8">? ? <title>支付宝</title>? ? <style>? ? ? ? *{? ? ? ? ? ? padding: 0;? ? ? ? ? ? margin: 0;
分类:
Web开发 时间:
2021-06-23 21:44:35
收藏:
0 评论:
0 赞:
0 阅读:
26
源码地址 https://github.com/hku-mars/loam_livox Ubuntu16.04安装ROS Kinetic详细过程 https://blog.csdn.net/weixin_43159148/article/details/83375218 sudo sh -c 'ec ...
分类:
Web开发 时间:
2021-06-23 21:44:22
收藏:
0 评论:
0 赞:
0 阅读:
53
export default class SocketService { /** * 单例 */ static instance = null static get Instance() { if (!this.instance) { this.instance = new SocketServic ...
分类:
Web开发 时间:
2021-06-23 21:44:01
收藏:
0 评论:
0 赞:
0 阅读:
24
css概述: CSS是Cascading Style Sheets的简称,中文称为层叠样式表,用来控制网页数据的表现,可以使网页的表现与数据内容分离。 css的四种引入方式: 1.行内式 行内式是在标记的style属性中设定CSS样式。这种方式没有体现出CSS的优势,不推荐使用 <div style ...
分类:
Web开发 时间:
2021-06-23 21:12:51
收藏:
0 评论:
0 赞:
0 阅读:
24
1、php数组溢出 user.php: <?php class User{ public $count; } ?> add_api.php: <?php include "user.php"; if($user=unserialize($_COOKIE["data"])){ $count[++$us ...
分类:
Web开发 时间:
2021-06-23 21:09:55
收藏:
0 评论:
0 赞:
0 阅读:
77
jquery Ajax跨域请求
分类:
Web开发 时间:
2021-06-23 21:00:20
收藏:
0 评论:
0 赞:
0 阅读:
17
package com.example.demo.util; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.CloseableHttpResponse; import ...
分类:
Web开发 时间:
2021-06-23 20:59:23
收藏:
0 评论:
0 赞:
0 阅读:
12