Danh mục

Tương tác giữa PHP và jQuery - part 29

Số trang: 10      Loại file: pdf      Dung lượng: 874.17 KB      Lượt xem: 7      Lượt tải: 0    
Xem trước 2 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

CHAPTER 8 ■ EDITING THE CALENDAR WITH AJAX AND JQUERY"deserialize" : function(str){...}, "urldecode" : function(str) {...} };Fixing Timezone InconsistenciesYou aren’t passing a time or timezone to the Date object, so that object will default to midnight Greenwich Mean Time (00:00:00 GMT). This can cause your dates to behave unexpectedly for users in different timezones. To address this problem, you’ll need to adjust the date by the timezone offset using two built-in Date object methods: .setMinutes() and .getTimezoneOffset(). The return value of .getTimezoneOffset() is the difference in the number of minutes between GMT and the user’s timezone. For instance, the return...
Nội dung trích xuất từ tài liệu:
Tương tác giữa PHP và jQuery - part 29

Tài liệu được xem nhiều: