简介 DNS的出现及演变 网络出现的早期是使用 IP 地址进行通信. 那时就几台主机通信. 但是随着接入网络主机的增多.这种数字表示的地址非常不便于记忆, UNIX 上就出现了建立一个叫做 hosts 的文件(Linux 和 Windows 也继承保留了这个文件). 这个文件中记录着主机名称和 IP ...
分类:
其他好文 时间:
2020-05-15 15:28:11
阅读次数:
79
WEB框架本质: 服务器程序和应用程序: 是一个socket服务端,而用户的浏览器就是一个socket客户端。例子:import?socketsok?=?socket.socket()sok.bind(("127.0.0.1",8008))sok.listen()while?True: conn,a ...
分类:
其他好文 时间:
2020-05-15 11:29:53
阅读次数:
92
In this lesson, we create a set of tabs with Alpine JS, where only the content of the currently active tab is visible. To do this, we define an active ...
分类:
Web程序 时间:
2020-05-14 19:45:34
阅读次数:
73
1、使用 v-cloak 能够解决 插值表达式闪烁的问题 <style> [v-cloak] { } </style> <p v-cloak>++++++++ {{ msg }} </p> 2、v-html的作用? 输出data中的html的内容的 <div v-html="msg2">121211 ...
分类:
Web程序 时间:
2020-05-14 19:06:49
阅读次数:
87
1、定义遍历注解类。 public class BindData { /** * 绑定Activity */ public static void bind(final Activity activity) { Class annotationParent = activity.getClass() ...
分类:
移动开发 时间:
2020-05-14 10:31:08
阅读次数:
77
vue指令(directive)一般用于直接对DOM元素进行操作。 vue中已经提供的指令有很多:v-text, v-html, v-bind, v-on, v-model, v-if, v-show 等等 1. 指令的定义形式 // 注册一个全局自定义指令 `v-focus` Vue.direct ...
分类:
其他好文 时间:
2020-05-14 01:23:26
阅读次数:
75
#接受端代码(更改IP地址即可,其余无须修改) import socket #使用IPV4协议,使用UDP协议传输数据 s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) #绑定端口和端口号,空字符串表示本机任何可用IP地址 s.bind(('100 ...
分类:
Web程序 时间:
2020-05-13 12:37:46
阅读次数:
72
一、系统介绍 1、阿里云 2、centOs8 二、安装步骤: 1、安装:yum install redis 2、设置配置文件:vim /etc/redis.conf 1)bind 0.0.0.0 2)protected-mode yes 3)daemonize yes 3、启动:systemctl ...
分类:
系统相关 时间:
2020-05-13 11:48:56
阅读次数:
71
#接收代码 import socket # 使用IPV4协议,使用UDP协议传输数据 s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # 绑定端口和端口号,空字符串表示本机任何可用IP地址 s.bind(('', 5000)) while Tru ...
分类:
其他好文 时间:
2020-05-12 22:02:15
阅读次数:
72
`this`的灵活性让编程困难了许多,因此需要一些方法把this给固定下来。 Function.prototype.call(thisValue, arg1, arg2, ...) 函数实例 的 可以指定函数内部this的指向。 的参数应当是一个对象。若 、`null undefined`则是全局对 ...
分类:
移动开发 时间:
2020-05-12 16:58:23
阅读次数:
63