0
Я просто следую руководству по установке, но что-то не работает. Это сообщение об ошибке:Titanium - запрошенный модуль не найден: сплав/контроллеры/undefined
TiExceptionHandler: (main) [0,29887] - In ti:/module.js:280,9
[ERROR] : TiExceptionHandler: (main) [0,29887] - Message: Uncaught Error: Requested module not found: alloy/controllers/undefined
[ERROR] : TiExceptionHandler: (main) [1,29888] - Source: throw new Error("Requested module not found: " + request);
[ERROR] : V8Exception: Exception occurred at ti:/module.js:280: Uncaught Error: Requested module not found: alloy/controllers/undefined
index.js:
$.index.open();
var myBooks = Alloy.Collections.books;
var book = Alloy.createModel("books",{
title: "Great Expectations",
author: "Charles Dickens"
});
myBooks.add(book);
book.save();
function showBook(event){
console.log(event);
var selectedBook = event.source;
var args = {
title: selectedBook.title,
author: selectedBook.author
};
var bookView = Alloy.createController("bookdetails". args).getView();
bookView.open();
}
bookdetails.js:
var args = arguments[0] || {};
$.titleLabel.text = args.title || "Default Title";
$.authorLabel.text = args.author || "Default author";
что это полный оборот? 'var bookView = Alloy.createController (" bookdetails ". args) .getView(); «Должна быть запятая. – Dragon
Да, это ошибка. Я дам вам знать, если из этого возникла ошибка. – Donovant