Vue Router 路由实现原理 一、概念 通过改变 URL,在不重新请求页面的情况下,更新页面视图。 二、实现方式 更新视图但不重新请求页面,是前端路由原理的核心之一,目前在浏览器环境中这一功能的实现主要有2种方式: 1.Hash 利用 URL 中的hash("#"); 2.利用 History ...
分类:
其他好文 时间:
2020-02-07 10:50:15
阅读次数:
58
一、初识Action Bar 1、定义: 翻译为操作栏,包括app图标,activity标题,选项菜单,向上按钮,TAB导航等等。 2、添加Action Bar 在现在Android Studio中,只要sdk版本大于11,则会默认添加。可以在AndroidManifest.xml中theme属性中 ...
分类:
移动开发 时间:
2020-02-06 19:59:50
阅读次数:
84
微信小程序自定义导航栏 navigation bar 返回键 首页 github: https://github.com/chen-yt/wx_custom_navigation_bar https://github.com/Superman2113/wx_custom_navigation_bar ...
分类:
微信 时间:
2020-02-06 10:35:52
阅读次数:
171
QT_4 QMainWindow QMainWindow是一个为用户提供主窗口程序的类,包含一个菜单栏(menu bar)、多个工具栏(tool bars)、多个锚接部件(dock widgets)、一个状态栏(status bar)及一个中心部件(central widget),是许多应用程序的基 ...
[toc] 前言 本文使用阿里云centos7,搭建git服务器,并实现免密 。 使用的服务器ip: 1、安装git 用yum安装,比较简单。 安装完成后,用 查看版本。 2、创建一个git用户 3、创建证书登录 3.1、打开RSA认证 修改 文件中的3项内容,改为: 3.2、创建authorize ...
分类:
其他好文 时间:
2020-02-03 20:41:06
阅读次数:
109
木之子梦之蝶 js打开新窗口 Window.open()方法 完整的代码 window.open('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=n ...
分类:
Web程序 时间:
2020-02-03 10:03:30
阅读次数:
115
某个div(class="box"),设置了它的属性 。溢出部分会以滚动的形式显示。这时,可以对这个div设置这部分的滚动条的样式了。 ...
分类:
Web程序 时间:
2020-02-02 21:31:17
阅读次数:
75
mysql按时间统计数据,没有数据的时候自动补充0 1.数据库中选择任意一个有数据的表,例如我选择的是 shopping_user 表 SELECT @cdate := DATE_ADD( @cdate, INTERVAL - 1 DAY ) `date`, 0 AS `sum` FROM ( SE ...
分类:
数据库 时间:
2020-02-02 15:26:54
阅读次数:
67
Given a 2D grid of 0s and 1s, return the number of elements in the largest square subgrid that has all 1s on its border, or 0 if such a subgrid doesn' ...
分类:
其他好文 时间:
2020-02-02 13:34:56
阅读次数:
73
plt.hist() 字体测试 plt.hist(x, bins=None, range=None, density=None, weights=None, cumulative=False, bottom=None, histtype='bar', align='mid', orientation ...
分类:
其他好文 时间:
2020-02-02 11:49:47
阅读次数:
81