我们这个网站项目是基于 django + bootstrap 框架搭建的,其中的 bootstrap 是美国Twitter公司推出的基于 HTML、CSS、JavaScript 开发的简洁、直观、强悍的前端开发框架,使得 Web 开发更加快捷。

在django 中使用bootstrap很简单,使用 pip install django-bootstrap4 下载安装,并将 bootstrap4 添加到 INSTALLED_APPS 中,在对应的html页面中添加  {% load bootstrap4 %} 即可。

bootstrap 目前有数个版本,用的比较多的是 bootstrap3 与 bootstrap4,但是在实际使用的过程中作者发现 django-bootstrap3 与 django-bootstrap4 这两个包在部署到服务器后会出现冲突的情况,导致访问页面时出现 500 的错误,目前未能够解决,如果有解决这个问题的办法请联系作者(suzh9@mail2.sysu.edu.cn) ,非常感谢。

我们在该项目中使用的是 django-bootstrap4,详细的使用方法可以参考 Bootstrap中文网 以及 Bootstrap—菜鸟教程,除此之外,很多在线网站提供了 bootstrap可视化设计的功能,具体参考 bootstrap UI 编辑器, 推荐使用 Bootstrap可视化布局系统。但是发现布局在本地的网页上应用的时候会有所差别,需要进一步的研究。

bootstrap3 与 bootstrap4 的区别不是很大,但是有些地方还是需要注意的,下面会简单说一下我踩过的坑,希望对大家有所帮助。

 

1.Bootstrap加载jquery

jQuery 是一个高效、精简并且功能丰富的 JavaScript 工具库。它提供的 API 易于使用且兼容众多浏览器,这让诸如 HTML 文档遍历和操作、事件处理、动画和 Ajax 操作更加简单。如果我们使用bootstrap中没有加载jQuery的话则会出现部分js工具无法使用。

配置的方法如下:在Schnee/settings.py中添加以下代码(注意对应不同的bootstrap版本,有点坑):

BOOTSTRAP4 = {'include_jquery': True,
}

 

2.Bootstrap4中的图标问题

在引入原来的 Lenote 项目的 users 的邮箱功能的时候,作者发现出现了图标缺失的情况,经检查发现在stackoverflow上有如下说明

原来是Bootstrap3中的 Glyphicons 字体图标 在Bootstrap中被移除了,需要使用类似于 Linearicons 等外部图标库,但是如果我们还是需要使用原来的 Glyphicons字体图标 该怎么办呢?

参考博客 bootstrap4中的图标Glyphicons在Angular5项目中应用问题 中提出了这样一个方法:自己动手修改 bootstrap.css 文件,将图标的相关代码添加进去,同时设置依赖的图标字体文件。

 

具体步骤:

1. 从bootstrap3的库中将 glyphicons-.eot、glyphicons-.ttf、glyphicons-*.svg 这三个文件复制到对应目录的static/font/文件夹下。

                            

2. 将下面长长的代码添加到 static/css/bootstrap.css 的末尾(注意:如下代码依赖glyphicons-.eot、glyphicons-.ttf、glyphicons-*.svg 文件)

@font-face {font-family: 'Glyphicons Halflings';src: url('../fonts/glyphicons-halflings-regular.eot');src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}.glyphicon {position: relative;top: 1px;display: inline-block;font-family: 'Glyphicons Halflings';font-style: normal;font-weight: normal;line-height: 1;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;
}.glyphicon-asterisk:before {content: "\002a";
}.glyphicon-plus:before {content: "\002b";
}.glyphicon-euro:before,
.glyphicon-eur:before {content: "\20ac";
}.glyphicon-minus:before {content: "\2212";
}.glyphicon-cloud:before {content: "\2601";
}.glyphicon-envelope:before {content: "\2709";
}.glyphicon-pencil:before {content: "\270f";
}.glyphicon-glass:before {content: "\e001";
}.glyphicon-music:before {content: "\e002";
}.glyphicon-search:before {content: "\e003";
}.glyphicon-heart:before {content: "\e005";
}.glyphicon-star:before {content: "\e006";
}.glyphicon-star-empty:before {content: "\e007";
}.glyphicon-user:before {content: "\e008";
}.glyphicon-film:before {content: "\e009";
}.glyphicon-th-large:before {content: "\e010";
}.glyphicon-th:before {content: "\e011";
}.glyphicon-th-list:before {content: "\e012";
}.glyphicon-ok:before {content: "\e013";
}.glyphicon-remove:before {content: "\e014";
}.glyphicon-zoom-in:before {content: "\e015";
}.glyphicon-zoom-out:before {content: "\e016";
}.glyphicon-off:before {content: "\e017";
}.glyphicon-signal:before {content: "\e018";
}.glyphicon-cog:before {content: "\e019";
}.glyphicon-trash:before {content: "\e020";
}.glyphicon-home:before {content: "\e021";
}.glyphicon-file:before {content: "\e022";
}.glyphicon-time:before {content: "\e023";
}.glyphicon-road:before {content: "\e024";
}.glyphicon-download-alt:before {content: "\e025";
}.glyphicon-download:before {content: "\e026";
}.glyphicon-upload:before {content: "\e027";
}.glyphicon-inbox:before {content: "\e028";
}.glyphicon-play-circle:before {content: "\e029";
}.glyphicon-repeat:before {content: "\e030";
}.glyphicon-refresh:before {content: "\e031";
}.glyphicon-list-alt:before {content: "\e032";
}.glyphicon-lock:before {content: "\e033";
}.glyphicon-flag:before {content: "\e034";
}.glyphicon-headphones:before {content: "\e035";
}.glyphicon-volume-off:before {content: "\e036";
}.glyphicon-volume-down:before {content: "\e037";
}.glyphicon-volume-up:before {content: "\e038";
}.glyphicon-qrcode:before {content: "\e039";
}.glyphicon-barcode:before {content: "\e040";
}.glyphicon-tag:before {content: "\e041";
}.glyphicon-tags:before {content: "\e042";
}.glyphicon-book:before {content: "\e043";
}.glyphicon-bookmark:before {content: "\e044";
}.glyphicon-print:before {content: "\e045";
}.glyphicon-camera:before {content: "\e046";
}.glyphicon-font:before {content: "\e047";
}.glyphicon-bold:before {content: "\e048";
}.glyphicon-italic:before {content: "\e049";
}.glyphicon-text-height:before {content: "\e050";
}.glyphicon-text-width:before {content: "\e051";
}.glyphicon-align-left:before {content: "\e052";
}.glyphicon-align-center:before {content: "\e053";
}.glyphicon-align-right:before {content: "\e054";
}.glyphicon-align-justify:before {content: "\e055";
}.glyphicon-list:before {content: "\e056";
}.glyphicon-indent-left:before {content: "\e057";
}.glyphicon-indent-right:before {content: "\e058";
}.glyphicon-facetime-video:before {content: "\e059";
}.glyphicon-picture:before {content: "\e060";
}.glyphicon-map-marker:before {content: "\e062";
}.glyphicon-adjust:before {content: "\e063";
}.glyphicon-tint:before {content: "\e064";
}.glyphicon-edit:before {content: "\e065";
}.glyphicon-share:before {content: "\e066";
}.glyphicon-check:before {content: "\e067";
}.glyphicon-move:before {content: "\e068";
}.glyphicon-step-backward:before {content: "\e069";
}.glyphicon-fast-backward:before {content: "\e070";
}.glyphicon-backward:before {content: "\e071";
}.glyphicon-play:before {content: "\e072";
}.glyphicon-pause:before {content: "\e073";
}.glyphicon-stop:before {content: "\e074";
}.glyphicon-forward:before {content: "\e075";
}.glyphicon-fast-forward:before {content: "\e076";
}.glyphicon-step-forward:before {content: "\e077";
}.glyphicon-eject:before {content: "\e078";
}.glyphicon-chevron-left:before {content: "\e079";
}.glyphicon-chevron-right:before {content: "\e080";
}.glyphicon-plus-sign:before {content: "\e081";
}.glyphicon-minus-sign:before {content: "\e082";
}.glyphicon-remove-sign:before {content: "\e083";
}.glyphicon-ok-sign:before {content: "\e084";
}.glyphicon-question-sign:before {content: "\e085";
}.glyphicon-info-sign:before {content: "\e086";
}.glyphicon-screenshot:before {content: "\e087";
}.glyphicon-remove-circle:before {content: "\e088";
}.glyphicon-ok-circle:before {content: "\e089";
}.glyphicon-ban-circle:before {content: "\e090";
}.glyphicon-arrow-left:before {content: "\e091";
}.glyphicon-arrow-right:before {content: "\e092";
}.glyphicon-arrow-up:before {content: "\e093";
}.glyphicon-arrow-down:before {content: "\e094";
}.glyphicon-share-alt:before {content: "\e095";
}.glyphicon-resize-full:before {content: "\e096";
}.glyphicon-resize-small:before {content: "\e097";
}.glyphicon-exclamation-sign:before {content: "\e101";
}.glyphicon-gift:before {content: "\e102";
}.glyphicon-leaf:before {content: "\e103";
}.glyphicon-fire:before {content: "\e104";
}.glyphicon-eye-open:before {content: "\e105";
}.glyphicon-eye-close:before {content: "\e106";
}.glyphicon-warning-sign:before {content: "\e107";
}.glyphicon-plane:before {content: "\e108";
}.glyphicon-calendar:before {content: "\e109";
}.glyphicon-random:before {content: "\e110";
}.glyphicon-comment:before {content: "\e111";
}.glyphicon-magnet:before {content: "\e112";
}.glyphicon-chevron-up:before {content: "\e113";
}.glyphicon-chevron-down:before {content: "\e114";
}.glyphicon-retweet:before {content: "\e115";
}.glyphicon-shopping-cart:before {content: "\e116";
}.glyphicon-folder-close:before {content: "\e117";
}.glyphicon-folder-open:before {content: "\e118";
}.glyphicon-resize-vertical:before {content: "\e119";
}.glyphicon-resize-horizontal:before {content: "\e120";
}.glyphicon-hdd:before {content: "\e121";
}.glyphicon-bullhorn:before {content: "\e122";
}.glyphicon-bell:before {content: "\e123";
}.glyphicon-certificate:before {content: "\e124";
}.glyphicon-thumbs-up:before {content: "\e125";
}.glyphicon-thumbs-down:before {content: "\e126";
}.glyphicon-hand-right:before {content: "\e127";
}.glyphicon-hand-left:before {content: "\e128";
}.glyphicon-hand-up:before {content: "\e129";
}.glyphicon-hand-down:before {content: "\e130";
}.glyphicon-circle-arrow-right:before {content: "\e131";
}.glyphicon-circle-arrow-left:before {content: "\e132";
}.glyphicon-circle-arrow-up:before {content: "\e133";
}.glyphicon-circle-arrow-down:before {content: "\e134";
}.glyphicon-globe:before {content: "\e135";
}.glyphicon-wrench:before {content: "\e136";
}.glyphicon-tasks:before {content: "\e137";
}.glyphicon-filter:before {content: "\e138";
}.glyphicon-briefcase:before {content: "\e139";
}.glyphicon-fullscreen:before {content: "\e140";
}.glyphicon-dashboard:before {content: "\e141";
}.glyphicon-paperclip:before {content: "\e142";
}.glyphicon-heart-empty:before {content: "\e143";
}.glyphicon-link:before {content: "\e144";
}.glyphicon-phone:before {content: "\e145";
}.glyphicon-pushpin:before {content: "\e146";
}.glyphicon-usd:before {content: "\e148";
}.glyphicon-gbp:before {content: "\e149";
}.glyphicon-sort:before {content: "\e150";
}.glyphicon-sort-by-alphabet:before {content: "\e151";
}.glyphicon-sort-by-alphabet-alt:before {content: "\e152";
}.glyphicon-sort-by-order:before {content: "\e153";
}.glyphicon-sort-by-order-alt:before {content: "\e154";
}.glyphicon-sort-by-attributes:before {content: "\e155";
}.glyphicon-sort-by-attributes-alt:before {content: "\e156";
}.glyphicon-unchecked:before {content: "\e157";
}.glyphicon-expand:before {content: "\e158";
}.glyphicon-collapse-down:before {content: "\e159";
}.glyphicon-collapse-up:before {content: "\e160";
}.glyphicon-log-in:before {content: "\e161";
}.glyphicon-flash:before {content: "\e162";
}.glyphicon-log-out:before {content: "\e163";
}.glyphicon-new-window:before {content: "\e164";
}.glyphicon-record:before {content: "\e165";
}.glyphicon-save:before {content: "\e166";
}.glyphicon-open:before {content: "\e167";
}.glyphicon-saved:before {content: "\e168";
}.glyphicon-import:before {content: "\e169";
}.glyphicon-export:before {content: "\e170";
}.glyphicon-send:before {content: "\e171";
}.glyphicon-floppy-disk:before {content: "\e172";
}.glyphicon-floppy-saved:before {content: "\e173";
}.glyphicon-floppy-remove:before {content: "\e174";
}.glyphicon-floppy-save:before {content: "\e175";
}.glyphicon-floppy-open:before {content: "\e176";
}.glyphicon-credit-card:before {content: "\e177";
}.glyphicon-transfer:before {content: "\e178";
}.glyphicon-cutlery:before {content: "\e179";
}.glyphicon-header:before {content: "\e180";
}.glyphicon-compressed:before {content: "\e181";
}.glyphicon-earphone:before {content: "\e182";
}.glyphicon-phone-alt:before {content: "\e183";
}.glyphicon-tower:before {content: "\e184";
}.glyphicon-stats:before {content: "\e185";
}.glyphicon-sd-video:before {content: "\e186";
}.glyphicon-hd-video:before {content: "\e187";
}.glyphicon-subtitles:before {content: "\e188";
}.glyphicon-sound-stereo:before {content: "\e189";
}.glyphicon-sound-dolby:before {content: "\e190";
}.glyphicon-sound-5-1:before {content: "\e191";
}.glyphicon-sound-6-1:before {content: "\e192";
}.glyphicon-sound-7-1:before {content: "\e193";
}.glyphicon-copyright-mark:before {content: "\e194";
}.glyphicon-registration-mark:before {content: "\e195";
}.glyphicon-cloud-download:before {content: "\e197";
}.glyphicon-cloud-upload:before {content: "\e198";
}.glyphicon-tree-conifer:before {content: "\e199";
}.glyphicon-tree-deciduous:before {content: "\e200";
}.glyphicon-cd:before {content: "\e201";
}.glyphicon-save-file:before {content: "\e202";
}.glyphicon-open-file:before {content: "\e203";
}.glyphicon-level-up:before {content: "\e204";
}.glyphicon-copy:before {content: "\e205";
}.glyphicon-paste:before {content: "\e206";
}.glyphicon-alert:before {content: "\e209";
}.glyphicon-equalizer:before {content: "\e210";
}.glyphicon-king:before {content: "\e211";
}.glyphicon-queen:before {content: "\e212";
}.glyphicon-pawn:before {content: "\e213";
}.glyphicon-bishop:before {content: "\e214";
}.glyphicon-knight:before {content: "\e215";
}.glyphicon-baby-formula:before {content: "\e216";
}.glyphicon-tent:before {content: "\26fa";
}.glyphicon-blackboard:before {content: "\e218";
}.glyphicon-bed:before {content: "\e219";
}.glyphicon-apple:before {content: "\f8ff";
}.glyphicon-erase:before {content: "\e221";
}.glyphicon-hourglass:before {content: "\231b";
}.glyphicon-lamp:before {content: "\e223";
}.glyphicon-duplicate:before {content: "\e224";
}.glyphicon-piggy-bank:before {content: "\e225";
}.glyphicon-scissors:before {content: "\e226";
}.glyphicon-bitcoin:before {content: "\e227";
}.glyphicon-btc:before {content: "\e227";
}.glyphicon-xbt:before {content: "\e227";
}.glyphicon-yen:before {content: "\00a5";
}.glyphicon-jpy:before {content: "\00a5";
}.glyphicon-ruble:before {content: "\20bd";
}.glyphicon-rub:before {content: "\20bd";
}.glyphicon-scale:before {content: "\e230";
}.glyphicon-ice-lolly:before {content: "\e231";
}.glyphicon-ice-lolly-tasted:before {content: "\e232";
}.glyphicon-education:before {content: "\e233";
}.glyphicon-option-horizontal:before {content: "\e234";
}.glyphicon-option-vertical:before {content: "\e235";
}.glyphicon-menu-hamburger:before {content: "\e236";
}.glyphicon-modal-window:before {content: "\e237";
}.glyphicon-oil:before {content: "\e238";
}.glyphicon-grain:before {content: "\e239";
}.glyphicon-sunglasses:before {content: "\e240";
}.glyphicon-text-size:before {content: "\e241";
}.glyphicon-text-color:before {content: "\e242";
}.glyphicon-text-background:before {content: "\e243";
}.glyphicon-object-align-top:before {content: "\e244";
}.glyphicon-object-align-bottom:before {content: "\e245";
}.glyphicon-object-align-horizontal:before {content: "\e246";
}.glyphicon-object-align-left:before {content: "\e247";
}.glyphicon-object-align-vertical:before {content: "\e248";
}.glyphicon-object-align-right:before {content: "\e249";
}.glyphicon-triangle-right:before {content: "\e250";
}.glyphicon-triangle-left:before {content: "\e251";
}.glyphicon-triangle-bottom:before {content: "\e252";
}.glyphicon-triangle-top:before {content: "\e253";
}.glyphicon-console:before {content: "\e254";
}.glyphicon-superscript:before {content: "\e255";
}.glyphicon-subscript:before {content: "\e256";
}.glyphicon-menu-left:before {content: "\e257";
}.glyphicon-menu-right:before {content: "\e258";
}.glyphicon-menu-down:before {content: "\e259";
}.glyphicon-menu-up:before {content: "\e260";
}

 

运行程序,检查图标情况,完工!

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. pptp服务器的账号密码格式,PPTP服务器配置选项详解

    导读PPTP服务器配置文件的格式与其它许多Unix程序相似,每一行包含一项配置内容,以配置选项名称开始,后面紧跟参数值或者关键字,它们之间用空格分隔。在读取配置文件时,pptpd进程将忽略空行和每一行“#”后面的注释。PP…...

    2024/4/23 9:59:00
  2. 前端框架UI选择

    最近要做一个企业的OA系统,以前一直使用EasyUI,一切都好,但感觉有点土了,想换成现在流行的Bootstrap为基础的后台UI风格,想满足的条件应该达到如下几个: 1、美观、大方、简洁 2、兼容IE8、不考虑兼容IE6/IE…...

    2024/4/23 20:46:48
  3. devise tree使用_使用Devise和Bootstrap在Rails上设置Angular SPA

    devise tree使用This article was originally published at jessenovotny.com. 本文最初发表在jessenovotny.com上 。 When I started programming my very first Angular single page application (SPA), I noticed the resources for setup and integration with Devise to …...

    2024/4/23 4:13:21
  4. Angular和.NET Core Web API入门应用程序

    下载源160.2 KB 您可以在此处查看此项目的源代码和最新更新 这是Angular/.NET Core Web API入门应用程序,具有添加、编辑和删除客户的基本功能,因此您可以将其用作构建应用程序的起点。它使用以下框架: Angular MaterialBootstrap.NET Core…...

    2024/4/23 20:26:03
  5. Spring Boot(九)Spring Boot中使用Bootstrap和AngularJS

    你好,【程序职场】专注于:Spring Boot ,微服务 和 前端APP开发,闲暇之余一起聊聊职场规划,个人成长,还能带你一起探索 副业赚钱渠道,在提升技术的同时我们一起交流 敏捷流程 提高工作效率&#…...

    2024/4/23 13:02:56
  6. angular学习之路18-ngmodule

    1,NgModule简介 NgModules 用于配置注入器和编译器,并帮你把那些相关的东西组织在一起。 NgModule 是一个带有 NgModule 装饰器的类。 NgModule 的参数是一个元数据对象,用于描述如何编译组件的模板,以及如何在运行时创建注入器。 它会标出…...

    2024/4/23 5:39:17
  7. 后台管理UI的选择

    最近要做一个企业的OA系统,以前一直使用EasyUI,一切都好,但感觉有点土了,想换成现在流行的Bootstrap为基础的后台UI风格,想满足的条件应该达到如下几个:1、美观、大方、简洁 2、兼容IE8、不考虑兼容IE6/IE7…...

    2024/4/24 0:21:10
  8. Angular 7 和 .Net Core 2.2——全球天气(第1部分)

    目录 介绍 设置Angular CLI环境 先决条件 npm包管理器 从Visual Studio 2017创建Asp.Net核心Web项目 使用Angular CLI创建天气客户端 天气信息REST API 天气组件 Angular 路由 反应表单(Reactive Form) 在Angular App中使用Bootstrap 4样式 Angular 服务 Angular …...

    2024/4/30 18:06:41
  9. InputStreamWrite:字符流

    两种读取方法如下所示:package cn.zll.demo;import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader;public class WriteDemo {public static void main(String[] args) throws IOException {…...

    2024/4/26 21:23:55
  10. angular学习之路3-架构

    1, 架构概览 Angular 的基本构造块是 NgModule,它为组件提供了编译的上下文环境。 NgModule 会把相关的代码收集到一些功能集中。Angular 应用就是由一组 NgModule 定义出的。 应用至少会有一个用于引导应用的根模块,通常还会有很多特性模块…...

    2024/4/23 18:08:38
  11. angular学习记录

    1 angular项目文件解析 创建一个angular项目ng new demo,会比较慢,等等 组件可以理解为一段带有业务逻辑和数据的html 2 组件文件的解析 组件控制屏幕上被称为视图的一小片区域。组件通过一些由属性和方法组成 //从angular核心库导入Component装饰…...

    2024/4/23 6:14:35
  12. Angular学习笔记(第四天)

    一、Ionic的使用 1.概述: Ionic是基于angular的移动端的ui组件库: (在后续的升级版本中,也在支持以cdn的方式,支持vue、react、js,但是这个新版本手册不够友好,还有些问题) ionic…...

    2024/4/26 10:54:49
  13. angular2--下拉更新和上拉加载更多

    效果如下&#xff1a; &#xff08;1&#xff09;页面往下拉做刷新页面操作 &#xff08;2&#xff09;页面往上滑到底部时&#xff0c;加载更多数据## 标题 html <ons-page><ons-toolbar><div class"left"></div><div class"cen…...

    2024/4/26 10:50:52
  14. 【Angular 6】滚动列表组件的封装

    前言 学习应为input和output相结合之过程&#xff0c;这就是写这篇文章的原因。在大屏幕展示web APP中&#xff0c;经常会用到滚动列表。经过几次尝试&#xff0c;确定了一个还不错的思路。 需求 列表表头thead部分静止&#xff0c;而tbody部分向上滚动。tbody部分滚动结束之后…...

    2024/4/21 3:13:22
  15. 微服务的脚手架Jhipster集成angular和vue的使用

    JHipster简介 JHipster或者称Java Hipster&#xff0c;是一个应用代码产生器&#xff0c;能够创建Spring Boot AngularJS的应用。开源项目地址&#xff1a;JHipster/Github。  JHipster使用Node.js和Yeoman产生Java应用代码&#xff0c;使用Maven(Gradle)运行产生的代码&…...

    2024/4/21 3:13:21
  16. Angular-3种创建动态内容的方式

    写在最前&#xff0c;本文提到的“模板”都是ng-template&#xff1b;假设的模态组件也只是实现模态内容&#xff1b;为了缩减文章的篇幅&#xff0c;只保留了重要的部分。完整的例子在线上。在开发过程中&#xff0c;难免会遇到公共组件需要Input模板或input组件的时候&#x…...

    2024/4/21 3:13:21
  17. Angular:nz-table中显示横向滚动条

    首先&#xff0c;可以参考一下ant-design官方文档中对于横向滚动条的用法&#xff08;这里参考1.8.1版本的固定列方法&#xff09;&#xff1a; import { Component } from angular/core;Component({selector: nz-demo-table-fixed-columns,template: <nz-table #nzTable […...

    2024/4/21 3:13:19
  18. 原生、混合、react-native应用对比分析

    原生开发、纯网页开发&#xff08;H5开发&#xff09;/混合开发&#xff08;H5原生&#xff09;、React-Native开发 原生开发是系统自带的app开发方式&#xff0c;也是大部分人最熟悉app开发的技术&#xff0c;如android、ios、wp。H5开发是Html5开发的app&#xff0c;本质上运…...

    2024/4/20 9:47:30
  19. Angular2中echarts的使用(饼图)

    ECharts (以饼图为例) ECharts&#xff0c;一个使用 JavaScript 实现的开源可视化库&#xff0c;可以流畅的运行在 PC 和移动设备上&#xff0c;兼容当前绝大部分浏览&#xff08;IE8/9/10/11&#xff0c;Chrome&#xff0c;Firefox&#xff0c;Safari等&#xff09;&#xff…...

    2024/4/21 3:13:17
  20. Angular 8 从基础到项目实战 完整的Angular学习路径

    安装npm依赖包 推荐使用http npm i --registryhttp://registry.npmjs.org/ 关于跨域可以使用nginx代理,关于package.json可以执行npm start,npm build… "scripts": {"ng": "ng","start": "ng serve","start.prod&q…...

    2024/4/21 3:13:16

最新文章

  1. 神经网络中常见的激活函数:理解与实践

    神经网络中常见的激活函数&#xff1a;理解与实践 在神经网络中&#xff0c;激活函数是一个非常重要的组成部分&#xff0c;它为神经元引入了非线性特性&#xff0c;使得神经网络可以拟合各种复杂的函数关系。本文将介绍9种常见的激活函数&#xff0c;包括它们的概述、公式以及…...

    2024/5/2 14:31:26
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. LeetCode-46. 全排列【数组 回溯】

    LeetCode-46. 全排列【数组 回溯】 题目描述&#xff1a;解题思路一&#xff1a;回溯。回溯三部曲解题思路二&#xff1a;0解题思路三&#xff1a;0 题目描述&#xff1a; 给定一个不含重复数字的数组 nums &#xff0c;返回其 所有可能的全排列 。你可以 按任意顺序 返回答案…...

    2024/5/2 11:58:51
  4. Redis的基本操作

    基本操作 redis默认开启16个数据库&#xff0c;默认使用第0个&#xff0c;可以使用select命令切换。 select index # 切换数据库查看当前数据库内所有键值 keys *清空数据库 flushdb # 清空当前数据库 flushall # 清空所有数据库设置键值对 set key value删除键值对 del …...

    2024/4/30 14:01:29
  5. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/5/1 17:30:59
  6. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/4/30 18:14:14
  7. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/4/29 2:29:43
  8. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/5/2 9:28:15
  9. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/4/27 17:58:04
  10. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/4/27 14:22:49
  11. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/4/28 1:28:33
  12. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/4/30 9:43:09
  13. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/4/27 17:59:30
  14. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/4/25 18:39:16
  15. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/4/28 1:34:08
  16. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/4/26 19:03:37
  17. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/4/29 20:46:55
  18. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/4/30 22:21:04
  19. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/5/1 4:32:01
  20. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/4/27 23:24:42
  21. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/4/28 5:48:52
  22. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/4/30 9:42:22
  23. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/5/2 9:07:46
  24. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/4/30 9:42:49
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57