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
f4962c30
Commit
f4962c30
authored
Sep 13, 2017
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates angular/hlsUtil.md
Auto commit by GitBook Editor
parent
7e89e185
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
hlsUtil.md
angular/hlsUtil.md
+6
-2
No files found.
angular/hlsUtil.md
View file @
f4962c30
...
@@ -116,10 +116,14 @@ APP开发会出现很多功能相同的函数和组件,现封装了很多公
...
@@ -116,10 +116,14 @@ APP开发会出现很多功能相同的函数和组件,现封装了很多公
##### 8.操作表 `
showSheet
`
##### 8.操作表 `
showSheet
`
- 参数1`
(
sheet
标题
)
`
- 参数1`
(
sheet
标题
)
`
- 参数2 `
(
操作列表
)
数组形式
`如`
[
'拍照'
,
'从相册选择'
]
`
- 参数2 `
(
操作列表
)
数组形式
`如`
[
'拍照'
,
'从相册选择'
]
`
- 参数3 回调函数 function
- 参数3 回调函数 function
回调函数返回操作列表的index
- 调用实例如下
- 调用实例如下
```
javascript
```
javascript
vm.showSheet = function () {
hlsUtil.showSheet('照片选择方式',
[
'拍照', '从相册选择'
]
, function (index) {
alert(index);
})
}
```
```
...
...
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