View unanswered posts | View active topics It is currently 2020-05-26 6:51



Reply to topic  [ 2 posts ] 
 注册位图为什么onload函数不执行? 
Author Message
新手上路

Joined: 2020-04-27 11:20
Posts: 3
Post 注册位图为什么onload函数不执行?
var image = new Image();
console.log('外');
image.onload = function() {
console.log('内');
twaver.Util.registerImage(name, image, image.width, image.height);
image.onload = null;
network.invalidateElementUIs();
};
image.src = url;


在vue脚手架中注册位图,onload函数不执行,请问为什么,急急急


2020-05-19 14:27
Profile
TWaver开发组
User avatar

Joined: 2019-04-23 11:02
Posts: 49
Post Re: 注册位图为什么onload函数不执行?
可能是你的url 地址写错了


2020-05-21 15:02
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron