View unanswered posts | View active topics It is currently 2020-10-21 18:26



Reply to topic  [ 2 posts ] 
 条形码是个div或图片,怎么把它放入node里面显示? 
Author Message
新手上路

Joined: 2018-06-06 16:49
Posts: 9
Post 条形码是个div或图片,怎么把它放入node里面显示?
条形码是个div或图片,怎么把它放入node里面显示? :helpless:


2018-06-22 15:56
Profile
TWaver开发组
User avatar

Joined: 2018-04-16 16:11
Posts: 164
Post Re: 条形码是个div或图片,怎么把它放入node里面显示?
我爱英语 wrote:
条形码是个div或图片,怎么把它放入node里面显示? :helpless:


不是很明白您的意思,您是想把node替换成条形码?还是想在node上面附加个条形码小图标呢?

不过思路都是差不多的,你可以先注册图片,然后再通过设置图片或者设置icon来达到想要的效果:

Code:
// 注册图片
twaver.Util.registerImage ( name, source, width, height, svg );

// 设置node背景
node.setImage('图片名');

//设置icon
node.s("icons.names", "图片名");


2018-06-22 19:11
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 16 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: