Commit b46a10ab by huangzhicong

更新测试页面

parent dbc6a6c1
......@@ -11,8 +11,8 @@
async function pickerPhoto() {
try {
const res = await jssdk.pickerPhoto();
document.getElementById('img').src = res.base64;
const res = await jssdk.pickerPhoto(2);
document.getElementById('img').src = res[0].base64;
} catch (error) {
console.error(error);
}
......@@ -88,8 +88,8 @@
<button type="button" id="openCamera" onclick="takePhotos()">拍摄照片</button>
<button type="button" id="recordAudio" onclick="startRecordAudio()">录制音频</button>
<button type="button" id="qrcode" onclick="onQRCodeClick()">识别二维码</button>
<button type="button" id="storage" onclick="onSetLocalStroge()">保存"测试"到本地</button>
<button type="button" id="acquire" onclick="onGetLocalStroge()">获取本地记录字符串</button>
<button type="button" id="clear" onclick="onRemoveLocalStroge()">清除本地记录字符串</button>
<button type="button" id="storage" onclick="onSetLocalStorage()">保存"测试"到本地</button>
<button type="button" id="acquire" onclick="onGetLocalStorage()">获取本地记录字符串</button>
<button type="button" id="clear" onclick="onRemoveLocalStorage()">清除本地记录字符串</button>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment