English 中文(简体)
页: 1
原标题:jquery 1.6.2 works on Android 2.1 emulator but not on Samsung Galaxy S

是否有任何其他人遇到过 j-1.6.2.min.js在三星银河上似乎并未奏效的问题? 如果是的话,谁知道我能作些什么修改才能将它用于这一装置?

我最近开始开发一个移动版本,即我今年早些时候制作的单字母网站。 所有这些都做了罚款,所有事情似乎都涉及广泛的安乐器和我自己的三星银星S2。 但是,当我用三星银星S1号对该网站进行测试时,我所有的 j印码似乎都被打破。 因此,我再次在安康·2.1和银河塔(使用缺席的WebKit browser)的推介器上测试,并在这些网站上做的只是罚款。

I tried numerous solutions and searched the web non stop for differences between the standard Android 2.1 and the one with which the Galaxy S ships, until I decided to downgrade the Jquery version I was using from 1.6.2 to 1.4.2. This solved my problem immediatly. However, because of improvements made to jquery for use with mobile devices, I would still like to be able to use 1.6.2.

提前感谢。

www.un.org/Depts/DGACM/index_spanish.htm Edit Nov 5:

正如Manuel Holzhauser指出的,将“///”改为“////”j Query 1.6.2 则解决了这一问题。 这似乎与两个前方斜线和双重引号相结合有关,因为后者和“/* 均在文字中使用,没有问题。

参考,该法典对“/”单一发生地作了规定:

// Main method
ajax: function( url, options ) {

    var // Create the final options object 
    s = jQuery.ajaxSetup( {}, options ), // (...)

    // Remove hash character (#7531: and string promotion)
    // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
    // We also use the url parameter if available
    s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );

    // (...)

}
最佳回答

We had exactly the same problem, but I have found the solution!

页: 1

它没有改变功能,而是用你的电话开展工作。

问题回答

I would attempt to run the jQuery unit tests when confronted with a new device or with the problems you are having (http://docs.jquery.com/Qunit)





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签