我该如何将以下jQuery代码翻译成Dart?我使用js.interop时遇到了警告回调无法正常工作的问题。
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
$(function () {
$('p').hide('slow', function() {
alert("The paragraph is now hidden");
});
});
</script>
非常感谢您的帮助。
dart:js
库可能更好。 - Seth Ladd