Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

How do I use jQuery in my Thimble project

  • 1 trả lời
  • 6 gặp vấn đề này
  • 3 lượt xem
  • Trả lời mới nhất được viết bởi gregonicus

more options

I want to include some javascript to animate elements in my project with jquery. I plan to hack at this but I don't see any reference to usage of external libraries in documentation or by web searches, so I hoping that it is possible. I am surprised that I seem to be the first to ask this.

I want to include some javascript to animate elements in my project with jquery. I plan to hack at this but I don't see any reference to usage of external libraries in documentation or by web searches, so I hoping that it is possible. I am surprised that I seem to be the first to ask this.

Tất cả các câu trả lời (1)

more options

Ok - "solved" it. It just works as you think it would - with one extra step.

1. include standard script entries in the header (1 for jquery, 1 for my custom code)

 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
 <script src="script-1.js"></script>

2. Add some jquery code to your js...

$(document).ready(function() {

 alert($("head title")[0].innerHTML);

});

THAT EXTRA STEP: Click the circle-arrow button to refresh the preview. (Doh!)

Yeah - the site is so responsive - i didn't even notice there was a refresh button.