0
我按照這個guide繼承一個類,但我得到的碰撞與dalvik.system.NativeStart.main(native method)
錯誤如何使用nativescript javascript extend?
var MyDatePicker = android.widget.DatePicker.extend({
init: function() {
var isConstructor = arguments[arguments.length - 1];
if (isConstructor) {
// we are called from Java constructor
console.log('con')
} else {
// we are called from Java init method
console.log('init');
}
}
});
var foo = new MyDatePicker();