Creating and triggering events
Creating and triggering eventsThis article demonstrates how to create and dispatch DOM events. Such events are commonly called synthetic events, as opposed to the events fired by the browser itself.
Creating custom eventsEvents can be created with the Event constructor as follows:
1234567const event = new Event('build');// Listen for the event.elem.addEventListener('build', function (e) { /* ... */ }, false);// Dispatch the event.elem.dispatchEvent(event);
The above ...
apt-get命令、dpkg命令、rpm命令和yum命令
apt-get命令、dpkg命令、rpm命令和yum命令一般来说著名的 Linux 系统基本上分两大类:
RedHat 系列:Redhat、Centos、Fedora 等
Debian 系列:Debian、Ubuntu 等
Debian系列1. apt-get常用的命令
sudo apt-get update 更新源
sudo apt-get install packageName 安装包
sudo apt-get remove packageName 删除包
sudo apt-get remove packageName —pure 删除包,包括其配置信息
sudo apt-get install packageName —reinstall 重新安装包
sudo apt-get -f install 修复安装
sudo apt-get build-dep packageName 安装相关编译环境
sudo apt-get upgrade 更新已安装的包
sudo apt-get source ckageName 下载该包的源代码
sudo apt- ...
Ubuntu 18.04LTS系统设置窗口打不开或者消失解决办法
Ubuntu 18.04LTS系统设置窗口打不开或者消失解决办法系统设置打不开,请重新安装gnome-control-center命令:sudo apt-get install gnome-control-center
系統设置里只有很少的几个图标请重新安装unity-control-center命令:sudo apt-get install unity-control-center
关于linux丢失/root文件夹导致的-bash-4.1#(不显示路径)的解决办法
关于linux丢失/root文件夹导致的-bash-4.1#(不显示路径)的解决办法
新建root目录
1mkdir /root
重新从主默认文件拷贝配置信息到/root目录下
12cp /etc/skel/.bash_profile /root/cp /etc/skel/.bashrc /root/
注销后重新登录
12logoutsu - root
重新登录后应该就可以正常显示啦!
参考文章
https://www.cnblogs.com/2lianzhang/p/8052312.html