Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
Static
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
fd4d9056
authored
Jun 26, 2026
by
kaisa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更新
parent
55097980
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
js/webAppComm.js
js/webAppComm.js
View file @
fd4d9056
...
...
@@ -694,16 +694,20 @@ webAppComm.prototype.setBackground = function (color, color2) {
//42: 手机振动
webAppComm
.
prototype
.
toVibrate
=
function
(
duration
)
{
// 使用 Number() 将 duration 转换为数字类型
let
numDuration
=
Number
(
duration
);
let
obj
=
{
"cid"
:
42
,
"data"
:
{
"duration"
:
duration
// # duration为振动的秒数
"duration"
:
numDuration
// 此时保证是 Number 类型
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
webAppCollaboration
(
obj2
);
}
//43: 修改webview宽高
webAppComm
.
prototype
.
setRatio
=
function
(
type
,
wr
,
hr
,
position
,
unit
)
{
let
obj
=
{
...
...
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