Skip to content

notice(title, content, options)不能用 #462

@wengzhenquan

Description

@wengzhenquan

这个函数是不是用法错了?

notice('message', 'hello', { isSilent: true });

执行以上代码,报下面错误:

05:07:16.251/V: 开始运行 [$cwd/小社/test-2.js [cache]].
05:07:16.266/E: 方法 "notice" 调用失败: [ Argument options [object Object] (Object) must be a JavaScript Object for notice with title and content ] (/data/user/0/org.autojs.autojs6/cache/tmp-scripts/tmp-1762463236149.js#1)
方法 "notice" 调用失败: [ Argument options [object Object] (Object) must be a JavaScript Object for notice with title and content ]
at /data/user/0/org.autojs.autojs6/cache/tmp-scripts/tmp-1762463236149.js:1:0

05:07:16.269/V: [$cwd/小社/test-2.js [cache]] 运行结束 (用时 0.016 秒)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Accepted 🌱 受理Maintainer may be busy resolving or fixing the labeled issuesBug 🐞 故障Confirmed bugs or reports that are very likely to be bugsDelayed ⌛ 延期Issues have been accepted but won't be settled in time

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions