- 科普 JSON Web Token 入门教程 Json Web Token JWT三部分组成: (1)Header (2)Payload (3)Signature Header.Payload.Signature 1 Base64URL 算法: Base64 有三个字符+、/和=,在 URL 里面有特殊含义, 所以要被替换掉:=被省略、+替换成-,/替换成_ ... 科普 JSON Web Token 入门教程 Json Web Token JWT三部分组成: (1)Header (2)Payload (3)Signature Header.Payload.Signature 1 Base64URL 算法: Base64 有三个字符+、/和=,在 URL 里面有特殊含义, 所以要被替换掉:=被省略、+替换成-,/替换成_ ...
- github: https://github.com/huge-success/sanic 使用方式和Flask 基本一致 安装 pip3 install sanic 1 最简单的示例 # -*- coding: utf-8 -*- from sanic import Sanic from sanic.response import text app = ... github: https://github.com/huge-success/sanic 使用方式和Flask 基本一致 安装 pip3 install sanic 1 最简单的示例 # -*- coding: utf-8 -*- from sanic import Sanic from sanic.response import text app = ...
- 1、本地图片 File 对象转换为 Data URL <input type="file" accept="image/*" onchange="loadFile(event)" /> <img id="image" /> <script> function loadFile(event) { const reader = new... 1、本地图片 File 对象转换为 Data URL <input type="file" accept="image/*" onchange="loadFile(event)" /> <img id="image" /> <script> function loadFile(event) { const reader = new...
- 文档: doc: https://backbonejs.org/doc-zh: https://www.backbonejs.com.cn/ Backbone依赖: jqueryunderscore 使用示例 <!-- 引入依赖 --> <script src="https://cdn.bootcdn.net/ajax/libs/jquer... 文档: doc: https://backbonejs.org/doc-zh: https://www.backbonejs.com.cn/ Backbone依赖: jqueryunderscore 使用示例 <!-- 引入依赖 --> <script src="https://cdn.bootcdn.net/ajax/libs/jquer...
- PyPI: https://pypi.org/project/webassets/Github: https://github.com/miracle2k/webassetsDoc: https://webassets.readthedocs.io/ 个人感觉是Python版的webpack 安装 pip install webassets 1 使用示例 fr... PyPI: https://pypi.org/project/webassets/Github: https://github.com/miracle2k/webassetsDoc: https://webassets.readthedocs.io/ 个人感觉是Python版的webpack 安装 pip install webassets 1 使用示例 fr...
- 1、正则表达式 登陆注册验证 test - 判断字符串是否符合规定的正则 //匹配测试结果 pattern = /\d+/ pattern.test("asfdasd123232fdsaf") true pattern.test("asfdasdfdsaf") false pattern = /^\d+$/ pattern.test("asfdasd123232f... 1、正则表达式 登陆注册验证 test - 判断字符串是否符合规定的正则 //匹配测试结果 pattern = /\d+/ pattern.test("asfdasd123232fdsaf") true pattern.test("asfdasdfdsaf") false pattern = /^\d+$/ pattern.test("asfdasd123232f...
- version=3.1 <?xml version="1.0" encoding="UTF8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=... version=3.1 <?xml version="1.0" encoding="UTF8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=...
- Flask http://docs.jinkan.org/docs/flask/ pip install Flask1 最小应用 from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' if __name__... Flask http://docs.jinkan.org/docs/flask/ pip install Flask1 最小应用 from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' if __name__...
- 思路 通过浏览器窗口的长和宽,和元素的长宽,计算出位置,最后绝对位置显示 具体计算为: top = (浏览器高 - 元素的高) / 2 left = 浏览器宽 / 2 + 需要向右边移动的距离 12 代码示例 <!--css开始--> <style> .site-nav{ width: 100px; } .hide{ display: ... 思路 通过浏览器窗口的长和宽,和元素的长宽,计算出位置,最后绝对位置显示 具体计算为: top = (浏览器高 - 元素的高) / 2 left = 浏览器宽 / 2 + 需要向右边移动的距离 12 代码示例 <!--css开始--> <style> .site-nav{ width: 100px; } .hide{ display: ...
- import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ConfigurableApplicationContext;... import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ConfigurableApplicationContext;...
- 1、安装 # 安装 Vue Cli npm install -g @vue/cli # 创建一个项目 vue create hello-world # 安装vant npm i vant -S # 完整写法:npm install vant --save # 安装插件 npm i babel-plugin-import -D # 完整写法: npm inst... 1、安装 # 安装 Vue Cli npm install -g @vue/cli # 创建一个项目 vue create hello-world # 安装vant npm i vant -S # 完整写法:npm install vant --save # 安装插件 npm i babel-plugin-import -D # 完整写法: npm inst...
- H5页面中唤醒app,版本问题可能导致不生效,只能说端太多,水太深 URL Scheme 1、新建一个隐藏的 iframe ,地址指向需要打开的url // 在ios支持不好 var iframe = document.createElement('iframe'); iframe.style.display = 'none'; iframe.src = url;... H5页面中唤醒app,版本问题可能导致不生效,只能说端太多,水太深 URL Scheme 1、新建一个隐藏的 iframe ,地址指向需要打开的url // 在ios支持不好 var iframe = document.createElement('iframe'); iframe.style.display = 'none'; iframe.src = url;...
- AngularJS:Web 前端框架 使用示例 <!-- 引入依赖 --> <script src="https://cdn.bootcdn.net/ajax/libs/angular.js/1.8.2/angular.min.js"></script> <!-- ng-app 定义一个 AngularJS 应用程序 --... AngularJS:Web 前端框架 使用示例 <!-- 引入依赖 --> <script src="https://cdn.bootcdn.net/ajax/libs/angular.js/1.8.2/angular.min.js"></script> <!-- ng-app 定义一个 AngularJS 应用程序 --...
- <style type="text/css"> .span { font-size: 12px; display: inline-block; } .scale-span { transform: scale(0.8); /* chrome */ -webkit-transform:scale(0.8); } </style> <body... <style type="text/css"> .span { font-size: 12px; display: inline-block; } .scale-span { transform: scale(0.8); /* chrome */ -webkit-transform:scale(0.8); } </style> <body...
- 按照官网给出的例子,在中间件配置允许跨域 app/middleware.php <?php // 中间件配置 use think\middleware\AllowCrossDomain; return [ AllowCrossDomain::class ]; 12345678910 前端请求依然出现了跨域请求提示 Access to XMLHttp... 按照官网给出的例子,在中间件配置允许跨域 app/middleware.php <?php // 中间件配置 use think\middleware\AllowCrossDomain; return [ AllowCrossDomain::class ]; 12345678910 前端请求依然出现了跨域请求提示 Access to XMLHttp...
上滑加载中
推荐直播
-
华为云码道Agent集成与鸿蒙实战2026/08/11 周二 19:00-21:00
王一男-华为云码道产品规划专家;李炎-华为云码道产品专家;彭江敏-华为云鸿蒙端云一体化开发专家
本次直播带你解读华为云码道7月份产品新特性、新功能。更有专家演示码道Agent Space × 钉钉机器集成实战,从0到1打通消息通道;码道鸿蒙端云一体化实战,快速搭建员工签到系统。
回顾中 -
华为云开发者AI素养直播课·第五期2026/09/04 周五 16:00-18:00
林华鼎-华为云AI开发者运营负责人;蒋春阳-华为云AI开发者案例开发专家
本期直播内容: AI工具体验营 · 第5-8课连讲。Agent-Team 多智能体协作完成毕业设计实践
回顾中 -
华为云开发者AI素养ClassRoom·第六期2026/09/08 周二 19:00-20:00
樊渊-2026华为软件挑战赛冠军
高手来了:看软挑高手解析二维排样问题—从工业难题到算法突破
回顾中
热门标签