【发布时间】:2014-07-20 22:15:36
【问题描述】:
他们做同样的事情吗?
我应该在客户端使用哪一个?
if ( Meteor.is_client ) {
Meteor.startup(function () {
// my code here
});
}
或
if ( Meteor.is_client ) {
$(function() {
// my code here
});
}
【问题讨论】:
标签: javascript meteor