OSI七层模型 ISO为了更好的使网络应用更为普及,推出了OSI参考模型。 (1)应用层 OSI参考模型中最靠近用户的一层,是为计算机用户提供应用接口,也为用户直接提供各种网络服务。我们常见应用层的网络服务协议有:HTTP,HTTPS,FTP,POP3、SMTP等。 在客户端与服务器中经常会有数据的请求,这个时候
base64.js // // THIS FILE IS AUTOMATICALLY GENERATED! DO NOT EDIT BY HAND! // ;(function(global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof
import Vue from 'vue' const drag = Vue.directive('drag', { bind: function(el) {}, inserted: function(el) { el.onmousedown = function(e) { var disx = e.pageX - el.offsetLeft var disy = e.pageY -
一、前言 模型压缩那块,还没琢磨明白就先不更,今天小更一下手撕promise,给小伙伴看个乐。 二、如何实现promise 知己知彼,才能百战百胜,我们先需要知道promise是什么,原理是什么,才能去实现这个过程。 1、promise是什么 说白了就是一种异步的解决方案,从语法上而言,promise就是一个对象,但
Examples $(function(){ //表单去空格 $("input").bind('blur keyup',function(){ $(this).val($(this).val().replace(/\s*/g,'')) }) })
js代码 <script> function ClearMultiSelectByName(name) { $("input[name='" + name + "[]']").removeAttr("checked"); $("input[name='" + name + "[]']").parent().removeCla
前言 非严格模式下的 this 指向可能我们会经常遇到,但是严格模式下的 this 指向不是经常碰到,关于严格模式下的 this 指向是怎么样的,都是指向哪些,这篇博文将会很仔细地说清楚。 一、全局作用域中的this 在严格模式下,在全局作用域中,this指向window对象。 1 2 3 4 5 6 7
HTML <script src="//api.map.baidu.com/api?v=2.0&ak={:C('BAIDU_MAP_KEY_BROWER')}"></script> <form class="layui-form"> <div class="layui-form-item"> <div class="layui-form-label&
/** * 提取body中的img-url * @param string $body * @return array 路径数组 */ function getBodyImgs($body=''){ preg_match_all("/<img([^>]*)\s*src=('|\")([^'\"]+)('|\")/i",$body,$match); return is_ar
function.php function htmlentities_custom($str) { return htmlentities($str, ENT_QUOTES); } config.php return [ 'DEFAULT_FILTER' => 'htmlentities_custom', ];
复制到剪贴板 <!-- 引入js文件 --> <script src="https://cdn.bootcdn.net/ajax/libs/clipboard.js/2.0.8/clipboard.min.js"></script> <!-- 给dom添加class/data-clipboard-text属性 --> <div class="copy" data-clipboard-text="${d
<input name="person_school" value="{$row[person_school]}" list="school_list" placeholder="请填写您的学校名称" /> <datalist id="school_list"></datalist> <script> $('[name=person_sch
var twoSum = function(nums, target) { const map=new Map(); for(let i=0;i<nums.length;i++){ //来找对象的值 const n=nums[i]; // 想找到目标对象的值 const n1=target-n;
IM多人聊天室功能简介 ZIM SDK 提供多人房间聊天功能,支持用户向房间内发送文本消息或自定义消息,实现了多人在线交流、同步分享。 多人房间聊天功能可应用于小班课或者会议室等场景,房间成员数量上限请参考 计费说明。 IM房间管理功能的前提条件 在实现“房间管理”功能之前,请确保:
http://127.0.0.1:3000/a.html <iframe id="frame" src="http://127.0.0.1:3001/b.html"></iframe> <script> iframe.onload = function() { iframe.contentWidnow.postMessage('msg from 3000/a.html', 'http://
请写出下面代码的运行结果 js async function async1() { console.log('async1 start'); await async2(); console.log('async1 end'); } async function async2() { console.log('async2'); } console.log('script start'); se
当前功能基于PHP,其它语言流程大抵相同。 大概流程: 1. 将docx文件上传到服务器中 2. 使用PHPoffice/PHPword实现将word转换为HTML 3. 将HTML代码返回并赋值到编辑器中 1 编辑器配置修改 1.1 新增上传word json配置 在ueditor\php\config.json中新增如下配置: /*
$(function(){ var sStudentList='' $.ajax({ url:'http://39.101.217.150:8075/jobs/list', data:{ page:1, size:8 }, success:function(data){ var records=data.data.records $.each(records,function(index,item){ sStudentList+=<li class='
效果图 如果按钮下没有内容会直接输出结果 wxml <view class="tr"> <view style="width: 30%;text-align: center;" wx:for="{{buildinglist}}" wx:for-index="i" wx:key="key"> <view wx:if="{{buildinglist[
源码资料获取:https://github.com/huangchun0121/3D-example/tree/main/省份立体板块 实现代码: 点击查看代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>中国地图</title> <style>
Python 装饰器 假设我们想为已经编写的代码添加额外的功能,例如我们想在一个特殊的 try catch 块中捕获任何错误,我们可以按如下方式进行。 def some_decorator(func): def try_except_block(*args, **kwargs): 尝试: func(*args, **kwargs) 除了例外: 打印(例外) 返
1:从注册表中查看加密后的密码。 1.1:windows键+r,输入 regedit 1.2:在注册表中找到 \HKEY_CURRENT_USER\SOFTWARE\PremiumSoft\navicat\servers 并找到 UserName 即 账号 1.3:从上面步骤中,打开注册表、并找到如下图片中的密码栏:Pwd(加密的密码) 2:解密密码,打开在
// ==UserScript== // @name Baidu Search AutoPager // @author Crab // @namespace autopager@baidu.com // @description 百度搜索自动翻页,网站预览图。 // @include /^https?:\/\/www\.baidu\.com\/(?:(?:baidu|s)\?.*|[#?&].*)?$/ // @version 0.7.1
// ==UserScript== // @name Purify Baidu Search // @description 百度搜索净化,去除推广链接和默认安装百度杀毒 // @namespace https://greasyfork.org/zh-CN/scripts/13808 // @version 2.0 // @include *www.baidu.com* // @run-at document-star
// ==UserScript== // @name 去百度搜索置顶推广 (ECMA6) // @author axetroy // @contributor axetroy // @description 去除插入在百度搜索结果头部、尾部的推广链接。 // @version 2016.6.4 // @grant none // @inc