- 文档: 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...
- 目录 目录WSGI 简介为什么需要 WSGI 这个规范WSGI 如何工作 WSGI的角色Server 如何调用 Applicationapplication 的两个参数application 对象的返回值再谈Server如何调用application WSGI 中间件WSGI的实现和部署参考资料 WSGI 简介 WSGI(Web Server... 目录 目录WSGI 简介为什么需要 WSGI 这个规范WSGI 如何工作 WSGI的角色Server 如何调用 Applicationapplication 的两个参数application 对象的返回值再谈Server如何调用application WSGI 中间件WSGI的实现和部署参考资料 WSGI 简介 WSGI(Web Server...
- 目录 目录前言RESTfulREST原则 REST的Web原则分层系统原则 RESTful的实现 SOA 面向服务的体系结构RPC样式 Web服务 RPC的实现过程SOAP 简单对象访问协议RPC样式架构构建的基于SOAP的Web服务传输信封 RESTful Web服务REST-RPC Web服务 RESTful Web服务的多层架构 Web服务的自动化客户端... 目录 目录前言RESTfulREST原则 REST的Web原则分层系统原则 RESTful的实现 SOA 面向服务的体系结构RPC样式 Web服务 RPC的实现过程SOAP 简单对象访问协议RPC样式架构构建的基于SOAP的Web服务传输信封 RESTful Web服务REST-RPC Web服务 RESTful Web服务的多层架构 Web服务的自动化客户端...
- 目录 文章目录 目录 Web HTTP Server API Service Application Web Web(World Wide Web,全球广域网),也称:万维网,它是一种基于 HTML(超文本标记语言)和 HTTP 协议的、全球性的、动态交互的、跨平台的分布式图形信息系统。是建立在 Internet 之... 目录 文章目录 目录 Web HTTP Server API Service Application Web Web(World Wide Web,全球广域网),也称:万维网,它是一种基于 HTML(超文本标记语言)和 HTTP 协议的、全球性的、动态交互的、跨平台的分布式图形信息系统。是建立在 Internet 之...
上滑加载中
推荐直播
-
华为云码道 × 仓颉编程:工程化AI编码探索2026/05/27 周三 19:00-21:00
刘俊杰-华为云仓颉语言专家/李炎-华为云码道技术专家/王智鹏-OpenCangjie开源社区发起人
本场直播围绕华为云仓颉语言与华为云码道的深度结合,展示华为云智能编程从零基础到高效落地的完整生态能力。以华为云码道为引擎,仓颉语言为载体,带给大家日常提效、趣味创新到极速量产的开发体验。
回顾中
热门标签