2014-03-31 34 views
0

工作,我有這樣的功能:。點擊()不PhoneGap的

$scope.launchSelectImg = function() { 
    document.getElementById("fileElem").click(); 
}; 

.click()不PhoneGap的火了我的Android設備上。在瀏覽器中工作得很好。
有什麼建議嗎?

+0

你'的onload = 「的init();」'您''標籤? – Popnoodles

+0

我不知道。這會對這種情況做什麼?爲什麼?只是好奇,我想了解這一點。 –

+0

我不知道。我用谷歌和發現這個http://stackoverflow.com/questions/11659562/phonegap-does-not-trigger-jquery-click-event – Popnoodles

回答

-2

可能,這將幫助..

$("#fileElem").live("click", function() 
{ 
    alert("success"); 
});