Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hel-guide
app
Commits
3a832b6e
Commit
3a832b6e
authored
Sep 08, 2017
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates angular/hlsUtil.md
Auto commit by GitBook Editor
parent
2ddaaaae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
hlsUtil.md
angular/hlsUtil.md
+3
-3
No files found.
angular/hlsUtil.md
View file @
3a832b6e
...
...
@@ -14,7 +14,7 @@ APP开发会出现很多功能相同的函数和组件,现封装了很多公
```
##### 2.时间格式化函数 `Date.prototype.format`
-
函数参数为
格式字符串
如
`yyyy-MM-dd`
-
函数参数为
`(格式字符串)`
如
`yyyy-MM-dd`
-
返回值为格式化后的时间 如
`2017-09-08`
-
调用实例如下
```
javascript
...
...
@@ -25,7 +25,7 @@ function dataFormat() {
```
##### 3.数组移除函数 `Array.prototype.remove`
-
函数参数为
数组下标
-
函数参数为
(数组下标)
-
返回新的数组
-
调用实例如下
```
javascript
...
...
@@ -36,7 +36,7 @@ function arrayRemove() {
```
##### 4.对象转成数组 `objToString`
-
函数参数为
对象
-
函数参数为
(对象)
-
返回字符串
-
调用实例如下
```
javascript
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment