Javascript date is invalid on iOS

前端 未结 7 833
忘掉有多难
忘掉有多难 2020-11-30 03:11

I\'m working on a Phonegap-based iOS app, which is already done for Android. The following lines are working fine for Android but not for iOS. Why?

var d = n         


        
7条回答
  •  星月不相逢
    2020-11-30 03:27

    I had such a hard time trying to solve this, i finally went for an easier solution and used moment.js. Not much you need to do just declare the dates and works in every device.

提交回复
热议问题