Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
IBMS
/
nativeview
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b46a10ab
authored
Feb 23, 2022
by
huangzhicong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新测试页面
parent
dbc6a6c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
app/src/main/assets/index.html
+6
-5
No files found.
app/src/main/assets/index.html
View file @
b46a10ab
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
async
function
pickerPhoto
()
{
async
function
pickerPhoto
()
{
try
{
try
{
const
res
=
await
jssdk
.
pickerPhoto
();
const
res
=
await
jssdk
.
pickerPhoto
(
2
);
document
.
getElementById
(
'img'
).
src
=
res
.
base64
;
document
.
getElementById
(
'img'
).
src
=
res
[
0
]
.
base64
;
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
error
);
console
.
error
(
error
);
}
}
...
@@ -88,8 +88,8 @@
...
@@ -88,8 +88,8 @@
<button
type=
"button"
id=
"openCamera"
onclick=
"takePhotos()"
>
拍摄照片
</button>
<button
type=
"button"
id=
"openCamera"
onclick=
"takePhotos()"
>
拍摄照片
</button>
<button
type=
"button"
id=
"recordAudio"
onclick=
"startRecordAudio()"
>
录制音频
</button>
<button
type=
"button"
id=
"recordAudio"
onclick=
"startRecordAudio()"
>
录制音频
</button>
<button
type=
"button"
id=
"qrcode"
onclick=
"onQRCodeClick()"
>
识别二维码
</button>
<button
type=
"button"
id=
"qrcode"
onclick=
"onQRCodeClick()"
>
识别二维码
</button>
<button
type=
"button"
id=
"storage"
onclick=
"onSetLocalSt
ro
ge()"
>
保存"测试"到本地
</button>
<button
type=
"button"
id=
"storage"
onclick=
"onSetLocalSt
ora
ge()"
>
保存"测试"到本地
</button>
<button
type=
"button"
id=
"acquire"
onclick=
"onGetLocalSt
ro
ge()"
>
获取本地记录字符串
</button>
<button
type=
"button"
id=
"acquire"
onclick=
"onGetLocalSt
ora
ge()"
>
获取本地记录字符串
</button>
<button
type=
"button"
id=
"clear"
onclick=
"onRemoveLocalSt
ro
ge()"
>
清除本地记录字符串
</button>
<button
type=
"button"
id=
"clear"
onclick=
"onRemoveLocalSt
ora
ge()"
>
清除本地记录字符串
</button>
</body>
</body>
</html>
</html>
\ No newline at end of file
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