这是我的HTML的外部.js文件。从外部.js文件访问功能
HTML:李ID = “getPhoto”
什么是访问此功能的最佳途径。无法让它工作。
$(document).ready(function() {
$('#getPhoto').click(function() {
function getPhoto(source) {
// Retrieve image file location from specified source
navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50,
destinationType: destinationType.FILE_URI,
sourceType: source });
}
});
});
谢谢你的评论,我有点想这个,但不知道。去试试看。 – Donald 2013-05-03 14:03:48