/* //一、this指向 let student = { stuName: '黄婷婷', study: function () { console.log(this.stuName + ' 学习') } } //this指向student student.study()//黄婷婷 学习 //thi ...
分类:
编程语言 时间:
2021-05-24 01:48:16
阅读次数:
0
前言 最近做完公司官网,因为不是做的响应式,而是分别PC和mobile各写了一套,所以有这样一个需求: 识别用户访问设备,如果用户通过电脑访问,则跳转至PC官网;反之通过手机访问,则跳转至mobile官网。 那应该怎么实现呢? 解决方法 查了很多方法,最终选择了下面这种 <script type=" ...
分类:
Web程序 时间:
2021-05-24 01:34:02
阅读次数:
0
PS C:\ycm\test\ts-newProjet> git pull origin master * branch master -> FETCH_HEAD fatal: refusing to merge unrelated histories 在新建项目时报refusing to merg ...
分类:
其他好文 时间:
2021-05-24 01:24:52
阅读次数:
0
How do I run a Python script from C#? The reason it isn't working is because you have UseShellExecute = false. If you don't use the shell, you will ha ...
分类:
编程语言 时间:
2021-05-24 01:04:39
阅读次数:
0
<!-- 引入viewer --> <link rel="stylesheet" href="../../../resources/viewer/viewer.min.css"> <script src="../../../resources/viewer/viewer.min.js"></scri ...
分类:
其他好文 时间:
2021-05-24 00:44:23
阅读次数:
0
script中的内容变化 没有data了,方法和data都写在setup(){....}中,这是vue3最显著的一个变化,这个东西叫做组合式api setup 里面定义普通数据类型用ref定义,定义对象类型用reactive定义,用reactive定义能深度响应,否则用ref的话就只能最外面的一层响 ...
分类:
其他好文 时间:
2021-05-24 00:39:59
阅读次数:
0
JavaScript 1. 基础 1.1 javaScript 的组成 ECMScirpt(js规范)、DOM(文档对象模型)、BOM(浏览器对象模型) 1.2 怎么写css 在html的文件中,script的标签中写js代码 js代码可以在html的标签中写 在js文件中可以写js代码,但是需要在 ...
分类:
编程语言 时间:
2021-05-24 00:39:43
阅读次数:
0
中介者模式 | 菜鸟教程 https://www.runoob.com/design-pattern/mediator-pattern.html 中介者模式 中介者模式(Mediator Pattern)是用来降低多个对象和类之间的通信复杂性。这种模式提供了一个中介类,该类通常处理不同类之间的通信, ...
分类:
其他好文 时间:
2021-05-24 00:28:25
阅读次数:
0
<script>$(document).ready(function(){ $("input:submit").click(function(){ $.ajax({ type: "POST", url: "Ajax", contentType: 'application/x-www-form-url ...
分类:
Web程序 时间:
2021-05-24 00:25:30
阅读次数:
0
Http 超文本传输协议 https(加密,更加安全) 传输协议经历的几个步骤 // http 超文本传输协议 https(加密,更加安全) // 前后端交互遵守的规则 /* => 步骤1 建立连接 基于Tcp/ip协议 三次握手 A(客户端) B(服务端) A问B 在吗? B确认 A能发 B能收 ...
分类:
Web程序 时间:
2021-05-24 00:20:22
阅读次数:
0