2012-08-10 36 views

Trả lời

16

jQuery cho thấy phiên bản của nó trên prototype (.fn):

console.log(jQuery.fn.jquery); 

kết quả đầu ra chuỗi "1.8.0" ví dụ.

3
// Returns string Ex: "1.3.1" 
$().jquery; 

// Also returns string Ex: "1.3.1" 
jQuery.fn.jquery; 
Các vấn đề liên quan