grunt是什么,grunt就是个东西.. grunt作为一个前端构建工具,有资源压缩,代码检查,文件合并等功能。 下面就简单了解grunt的使用。 一、环境配置 grunt是基于nodejs的,所以需要一个 nodejs 环境,未了解的可以 来这看看 还是在windows下, 首先要保证grunt ...
分类:
其他好文 时间:
2019-07-30 14:19:23
阅读次数:
145
Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri ...
分类:
其他好文 时间:
2019-07-20 13:01:37
阅读次数:
93
表单元素是一类拥有内部状态的元素,这些状态由其自身维护,通过这类元素可让用户与Web应用进行交互。HTML中的表单元素(例如<input>、<select>和<radio>等)在React中都有相应的组件实现,不仅如此,React还将它们分成两种:受控组件和非受控组件。 一、受控组件 受控组件(Co ...
分类:
其他好文 时间:
2019-07-15 09:15:12
阅读次数:
91
1.【在网页中引用javaScript的方式】 1.内部js,直接使用<script>标签 2.外部js,指定<script>的src属性 3.直接写在html的标签中(一般极少代码时使用):<input onclick="javascript:alert('欢迎');"> 2.【使用typeof判 ...
分类:
Web程序 时间:
2019-07-11 12:32:46
阅读次数:
135
1.Array数组对象unshift( ) 数组开头增加功能:给数组开头增加一个或多个 参数:一个或多个 返回值:数组的长度 原数组发生改变 shift( ) 数组开头删除一项功能:给数组开头删除一个 参数:无 返回值:被删除的内容 原数组发生改变 push( ) 数组末尾增加功能:给数组末尾增加一 ...
分类:
Web程序 时间:
2019-06-27 16:15:44
阅读次数:
150
字符串不是数组,不能混用方法 1、字符串可以和数组一样,进行遍历 2、indexOf和lastIndexOf 查找值在字符串中第一次和最后一次出现的下标 3、trim 去除字符串的首尾空格 4、转大写:to Uppercase() 转小写:to Lowercase() 5、拼接和截取: 拼接:str ...
分类:
其他好文 时间:
2019-06-22 21:21:37
阅读次数:
142
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This ...
分类:
其他好文 时间:
2019-06-21 21:02:04
阅读次数:
116
题目如下: You have a set of tiles, where each tile has one letter tiles[i]printed on it. Return the number of possible non-empty sequences of letters you ...
分类:
其他好文 时间:
2019-06-15 10:20:42
阅读次数:
117