Learn and practice

Mac Npm Install Issue

facing com.apple.pkg.CLTools_Executables issue my project was written on windows, when i fetch my remote code to local (mac), and try to run npm install, got error which contain com.apple.pkg.CLTo...

Nvm_gnvm_nrm

使用nvm(Node Version Manager)可以方便的在同一台设备上进行多个node版本之间切换,解决不同的项目所使用的node版本不一样的问题 nvm 下载安装 1.下载傻瓜式安装 https://github.com/coreybutler/nvm-windows/releases 2.在git中安装 curl -o- https://raw.githubuserconte...

Vscode

MacBook Pro 笔记本风扇声音大 发烫 打开cpu监视器查看 打开MAC的Application(应用)–> Utilities(工具) –> Activity Monitor–>双击打开即可查看cpu/内存使用情况 选中需要关闭的进程,双击打开即可选择关闭 vscode rg占用内存过大解决 打开VSCode => Code => ...

Mac Webstorm Active

one. update /etc/hosts Open the Terminal. It’s located at /Applications/Utilities/Terminal.app Enter the following command: sudo nano /private/etc/hosts This command is...

Operation In Mac

mac 使用code命令打开VSCode Open VSCode by code . for Mac We can use open . command to open folder in Finder. Also we can use code . command to open VSCode: Download VSCode for Mac Press command+...

Html5 new feature

1. HTML5自定义属性对象Dataset <a href="javascript:" data-id="2312">测试</a> 这里的data-前缀就被称为data属性,其可以通过脚本进行定义,也可以应用CSS属性选择器进行样式设置。数量不受限制,在控制和渲染数据的时候提供了非常强大的控制。 Dataset基础 下面是元素应用data属性的一个例子: &l...

Web Components

Web Components 入门实例教程[http://www.ruanyifeng.com/blog/2019/08/web_components.html] Web Components Tutorial for Beginners[https://www.robinwieruch.de/web-components-tutorial] Custom Elements v1: Re...

Es6

set /** 数据结构: set 集合: 可以存储任何数据类型,并且是唯一的(不重复的值) */ ```javascript const set1 = new Set(); // 往set1中添加数据 set1.add(100); set1.add(“A String”); set1.add({name:”Henry”}); set1.add(true); //...

Deploy Git On Aliyun

1. Navigate to git release, to find the latest release. run wget https://github.com/git/git/archive/v2.30.0.tar.gz You can download to you local laptop first, then transfer to Liunx(ALiYun)thro...

Jquery

JQuery的extend扩展方法 $.extend(src) 该方法就是将src合并到jquery的全局对象中去,如: $.extend({ hello:function(){alert('hello');} }); // 就是将hello方法合并到jquery的全局对象中 $.hello() // 弹出 hello $.fn.extend...

Tomcat

Tomcat What’s Tomcat Tomcat is an application server from the Apache Software Foundation that executes Java servlets and renders Web pages that include Java Server Page coding. Described as a “...

Jenkins

Jenkins Whats’ Jenkins? Jenkins is an award-winning application that monitors executions of repeated jobs, such as building a software project or jobs run by cron. Among those things, current J...