js检测资源是否存在

this.getPicture(() => { console.log(‘成功’) },url); // 获取图片 getPicture(conBack,url) { let that = this; // 使用示例 this.checkResource(url).then(exists => {
posted @ 2024-06-06 10:47  黑白棋学弟  阅读(1)  评论(0编辑  收藏  举报