0
を隠し、表示し、私は次のスニペットがありますYUI3トランジションは、divの
YUI().use('transition', 'node-event-delegate', function(Y) {
var button = Y.one('#subscribe');
var close = Y.one('#close');
function open (e) {
var node = Y.one('#popup-subscribe');
node.show(true);
}
button.on('click', open);
function closeIt (e) {
var node = Y.one('#popup-subscribe');
node.hide(true);
}
close.on('click', closeIt);
});
をしかし、私はそれをテストし、例えばクローズをクリックしたとき、私は、このエラーメッセージが出ます:
node.hide is not a function
node.hide(true);
任意のアイデアをどうして?
はいああ、私はhttp://yui.yahooapis.com/3.1を使用していました。 0/build/yui/yui-min.js ありがとう! – user1154863