You have been setting up event
listeners using jQuery's on method.
Now this works really well, but
jQuery also has some convenience
methods that you can use.
Let's take a look.
This is how we would set
up an event listener for
a keypress on every input field.
We could rewrite this using jQuery's
convenience method by replacing the on
with the keypress.
And now we don't have to specify
the event type because the convenience
method implies it.
See?
Much nicer.
Looking at the keypress documentation,
you'll see jQuery point out
that the keypress function
is actually a shortcut for
the on method,
passing keypress as an argument.
It's important to know that there
aren't convenience methods for
every event type.
Take a minute to look up what methods
are available on jQuery's API site.
I have linked to the appropriate
page in the instructor notes.
لقد قمتم بإنشاء موزعات رسائل الأحداث
.باستخدام أسلوب on الخاص بـ jQuery
هذا يعمل بشكل جيد جدًّا، ولكن لدى
jQuery أيضًا بعض أساليب
.الملاءمة التي يمكنكم استخدامها
.فلنتعرف على ذلك
إليكم كيف سنقوم بإنشاء
موزع رسائل أحداث
.لحدث keypress فيما يتعلق بكل حقل إدخال
يمكننا إعادة كتابة ذلك باستخدام أسلوب الملاءمة الخاص بـ jQuery
من خلال استبدال الأسلوب on
.بالأسلوب keypress
والآن، لا يجب علينا تحديد
نوع الحدث لأن أسلوب الملاءمة
.يشير إليه ضمنيًّا
أتلاحظون؟
.أفضل بكثير
،بالنظر إلى وثائق keypress
سترون أن jQuery يوضح أن
الدالة keypress
اختصارًا بالفعل
،للأسلوب on
.حيث يمرر keypress كوسيطة
من المهم أن تعرفوا أنه ليست هناك
أساليب ملاءمة
.لكل نوع من أنواع الأحداث
توقفوا دقيقة للبحث عن الأساليب
.المتوفرة على موقع API الخاص بـ jQuery
لقد ضمّنت رابطًا
.مؤديًا إلى الصفحة المناسبة في ملاحظات المدرب
لقد تم إنشاء هذا الحدث
المستمعين باستخدام مسج على الأسلوب.
الآن هذا يعمل بشكل جيد حقا, ولكن
وقد jQuery أيضا بعض
أساليب الراحة التي يمكنك استخدامها.
دعونا نلقي نظرة.
هذه هي الطريقة التي ستقيم حدثا المستمع
ضغطه مفتاح في كل حقل الإدخال.
نحن يمكن أن كتابة هذا باستخدام أسلوب
مناسب مسج بالاستعاضة عن شأن
مع ضغطه مفتاح.
والآن ليس لدينا لتحديد
نوع الحدث نظراً للراحة
ويعني أسلوب أنه.
انظر؟
أجمل
بكثير
النظر في الوثائق keypress،
سترى مسج نشير إلى
أن وظيفة keypress في الواقع اختصار
في الأسلوب، تمرير keypress كوسيطة.
من المهم أن نعرف أنه لا توجد أساليب الراحة
كل نوع الحدث.
خذ دقيقة للبحث ما هي الوسائل
المتاحة على مسج API
لقد ربط إلى الصفحة المناسبة في ملاحظات المدرب
Mit der "on"-Methode von jQuery habt
Ihr bislang Event Listeners erstellt.
Das funktioniert wirklich gut, aber
jQuery bietet auch einige vereinfachende
Methoden, die Ihr verwenden könnt.
Lasst uns einen Blick darauf werfen.
So würden wir einen Event Listener für
einen Tastendruck für jedes Eingabefeld
einrichten.
Wir können dies umschreiben, indem wir
die vereinfachende jQuery-Methode verwenden
und dabei das "on" durch "keypress" ersetzen.
Jetzt brauchen wird den Typ des Events nicht mehr
anzugeben,
da die Vereinfachungs-Methode dies schon impliziert.
Seht Ihr?
Viel schöner.
Wenn Ihr Euch die Dokumentation anschaut,
seht Ihr, dass jQuery darauf hinweist,
dass die "keypress"-Funktion
eigentlich eine Abkürzung für
die "on"-Methode ist, wobei "keypress"
als Argument übergeben wird.
Es ist wichtig zu wissen, dass es
nicht für jede Art von Event
eine vereinfachende Funktion gibt.
Schaut doch einmal auf der API-Webseite,
welche Methoden es gibt.
In den Dozentenbemerkungen habe ich
zu der entsprechenden Seite verlinkt.
You have been setting up event
listeners using jQuery's on method.
Now this works really well, but
jQuery also has some convenience
methods that you can use.
Let's take a look.
This is how we would set
up an event listener for
a keypress on every input field.
We could rewrite this using jQuery's
convenience method by replacing the on
with the keypress.
And now we don't have
to specify the event type, because the
convenience method implies
it. See?
Much nicer. Looking
at the keypress documentation,
you'll see JQuery point out
that the keypress function
is actually a shortcut for
the on method,
passing keypress as an argument.
It's important to know that there aren't
convenience methods for every event type.
Take a minute to look up what methods
are available on jQuery's API site.
I have linked to the appropriate
page in the instructor notes.
Usted ha estado configurando evento
como oyentes que utilizan el método de jQuery sucesivamente.
Ahora bien, esto funciona muy bien , pero
jQuery también tiene algo de conveniencia
métodos que se pueden utilizar.
Echemos un vistazo.
Así es como nos pondríamos
hasta un detector de eventos para
una pulsación prolongada en todos los campos de entrada.
Podríamos escribir esto usando jQuery de
método de conveniencia mediante la sustitución de la de
Pulsación de una tecla.
Y ahora no tenemos que especificar
el tipo de evento , ya la conveniencia
método implica ella.
¿Ver?
Mucho más bonito.
En cuanto a la documentación de pulsación de tecla ,
verás jQuery señalan
que la función de pulsación
es en realidad un acceso directo para
el sobre el método,
pasando pulsación como argumento.
Es importante saber que hay
no son métodos de conveniencia para
cada tipo de evento.
Tome un minuto para ver qué métodos
están disponibles en el sitio de la API de jQuery .
He vinculado a la apropiada
página en las notas del instructor .
Usted ha estado configurando evento
oyentes que utilizan el método de jQuery sucesivamente.
Ahora bien, esto funciona muy bien, pero
jQuery también tiene algo de conveniencia
métodos que se pueden utilizar.
Echemos un vistazo.
Así es como nos pondríamos
hasta un detector de eventos para
una pulsación prolongada en todos los campos de entrada.
Podríamos escribir esto usando jQuery de
método de conveniencia mediante la sustitución de la de
con la pulsación de tecla.
Y ahora no tenemos que especificar
el tipo de evento, ya la conveniencia
método implica ella.
¿Ves?
Mucho mas bonito
En cuanto a la documentación de pulsación de tecla,
verás jQuery señalan
que la función de pulsación
es en realidad un acceso directo para
el sobre el método,
pasando pulsación como argumento
Es importante saber que hay
no son métodos de conveniencia para
cada tipo de evento.
Tome un minuto para ver qué métodos
están disponibles en el sitio de la API de jQuery.
He vinculado a la apropiada
página en las notas del instructor
Vous avez configurez événement
auditeurs utilisant la méthode jQuery.
Maintenant, cela fonctionne très bien,
mais
jQuery a des méthodes pratiques
que vous pouvez utiliser.
Jetons un coup d'oeil.
Voici comment nous créons un écouteur
d'événement pour
une keypress sur
chaque champ de saisie.
On peut réécrire ca en utilisant la méthode
de commodité jQuery en remplaçant On
avec la touche.
Et ici ,on ne spécifie pas le type car
la commodité de l'événement
méthode implique qu'elle.
Voyez-vous ?
Beaucoup mieux.
En regardant la documentation keypress,
vous verrez jQuery signaler
que la fonction keypress
est en fait un raccourci
la méthode on, passant keypress
comme un argument.
il faut savoir qu'il n'y a pas des
méthodes pratiques pour
chaque type d'événement.
Prenez une minute pour voir les méthodes
disponibles sur jQuery site de l'API.
J'ai lié à la page dans les notes
de l'instructeur.
आप jQuery के on method की मदद से
event listeners को बना रहे है
अब यह वास्तव में अच्छी तरह
से काम करता है,लेकिन
jQuery में कुछ convenience methods भी हैं
जिन्हें आप उपयोग कर सकते हैं
चलो एक नज़र डालते हैं।
हम प्रत्येक इनपुट फ़ील्ड पर keypress
के लिए इस प्रकार
event listener सेटअप करते है
इसे jQuery के convenience method
का उपयोग करके keypress को on से बदलकर
हम इसे फिर से लिख सकते हैं।
और अब हमें event type निर्दिष्ट करने की
आवश्यकता नहीं है
क्योंकि convenience method खुद इसे
प्रदर्शित करता है
देखा?
कितना आसान है
keypress प्रलेखन को देखते हुए,
आप देखेंगे कि jQuery का कहना है
कि keypress फ़ंक्शन वास्तव में
on method के लिए एक शॉर्टकट है,
जिसमे keypress एक आर्गूमेंट है
यह जानना महत्वपूर्ण है कि
प्रत्येक ईवेंट के लिए आसान तरीकों की
सुविधा नहीं है।
JQuery API site पर कौन से मेथड उपलब्ध हैं
यह देखने के लिए एक मिनट का समय लें।
मैंने प्रशिक्षक नोट्स में उपयुक्त पृष्ठ से
लिंक किया है
Már állítottál be eseményfigyelőket
a jQuery on metódusával.
Ez tényleg jól működik, de
a jQuerynek vannak kényelmi metódusai
is, amelyeket használni tudsz.
Nézzük meg.
Így állítunk be egy
eseményfigyelőt
minden beviteli mező gombnyomására.
Átírhatjuk ezt a jQuery kényelmi metódusát
használva úgy, hogy az on-t kicseréljük
a gombnyomással.
És most nem kell megadnunk az esemény
típusát, mivel a kényelmi
metódus jelzi azt.
Látod?
Sokkal szebb.
A gombnyomás dokumentációt megnézve
láthatod, hogy a jQuery rámutat, hogy
a gombnyomás funkció valójában
egy rövidítés az
on metódushoz, a gombnyomást
adja át argumentumként.
Fontos tudni, hogy nincs
minden eseménytípushoz
kényelmi metódus.
Szánd rá az időt, hogy megnézd, milyen
metódusok vannak a jQuery API oldalon.
Ezt be is linkeltem az
oktatói jegyzetekhez.
Kamu telah mengatur event listeners menggunakan metode jQuery's
Sekarang ini sudah berjalan dengan baik, tetapi
JQuery juga memiliki metode-metode lain yang bisa dipakai dengan lebih nyaman
Coba kita lihat.
Beginilah caranya untuk mengatur event listeners untuk
Satu tekanan di setiap area masukan
Kita bisa menulis ini lagi menggunakan metode mudah jQuery dengan cara menggantikan
Dengan tombol keyboard
Dan sekarang kita tidak usah mencantumkan tipe event karena mudahnya
Metode ini diterapkan.
Betul kan?
Jauh lebih baik.
Jika kamu lihat tombol dokumentasi, kamu bisa lihat panah jQuery
Yang berfungsi sebagai tombol tekan itu sebenarnya adalah jalan pintas untuk
Metode menyalakan, membiarkan tombol menjadi argumen.
Perlu diketahui bahwa tidak ada banyak metode yang mudah untuk
Semua tipe event.
Coba lihat metode-metode apa saja yang tersedia di situs jQuery.
Saya sudah mencantumkan tautan dari halaman yang diperlukan di catatan instruktur .
Hai organizzato un evento
ascoltatori che usano JQuery´s.
Ora funziona davvero bene, ma
JQuery ha anche qualche comoditá
metodi che puoi usare.
Diamo un'occhiata.
É cosí che vorremo impostare
un listener di eventi per
un tasto premuto su ogni campo di input.
Potremmo riscriverlo usando jQuery
metodo di
sostituendo
con tasto premuto.
metodi lo implica.
Lo vedere?
Molto bello.
Guardando la documentazzioni di Keypress,
vedrai jQuery
che la funzione di pressione dei tasti
è in realtà una scorciatoia per
Cómo se pronuncia
Abrir en Google Traductor
Comentarios
Resultado web con enlaces de partes del sitio
Traductor de Google
https://translate.google.com › ...
El servicio gratuito de Google traduce instantáneamente palabras, frases y páginas web del español a más de 100 idiomas y viceversa.
Descargar y usar el Traductor
También puedes usar el Traductor de Google desde su página ...
Google Traductor
Idiomas - Herramientas - Contribuir - ...
Más resultados de google.com »
Noticias destacadas
Google Translate: ponen Chuck Norris en el traductor y sale mensaje polémico que enciende las redes [FOTOS]
LaRepublica.pe
hace 7 horas
Google Translate: esto muestra el traductor si pones Backstreet Boys y pocos lo notaron [FOTOS]
LaRepublica.pe
hace 1 hora
Google Translate intenta cantar 'DNA' de los BTS y fans quedaron sorprendidas por inesperado detalle
Mag
hace 2 horas
Más sobre google translate
Resultados de la Web
Traductor de Google - Aplicaciones en Google Play
https://play.google.com › store › apps › details › id=com.google.android.a...
Calificación: 4.5 - 6.524.202 votos - Gratis - Android - Utilidades/Herramientas
15 ago. 2019 - Traduce entre 103 idiomas escribiendo • Tocar para Traducir: copia texto en cualquier aplicación y aparecerá su traducción • Sin conexión: ...
Traductor de Google - Wikipedia, la enciclopedia libre
https://es.wikipedia.org › wiki › Traductor_de_Google
El Traductor de Google (del inglés Google Translate) es un sistema multilingüe de traducción automática, desarrollado y proporcionado por Google, para ...
Idiomas disponibles: 90+ idiomas, consulte los ...Usuarios registrados: Más de 200 millones de ...
Tipo: Machine translation software y Sitio web
Google Translate 6.1.1.RC05.263290440 para Android - Descargar
https://traductor-de-google.uptodown.com › ... › Educación e idiomas
Calificación: 4.8 - 78 votos
Descargar Google Translate 6.1.1.RC05.263290440. El traductor más completo en tu bolsillo. Google Translator es la aplicación oficial de traducción de Google ...
Última Versión 6.1.1.RC05.263290440 15.08.19 - Google Translate
https://traductor-de-google.uptodown.com › ... › Google Translate
descargar google translate android, google translate android, google translate android descargar gratis.
Traductor de Google - Google Chrome
https://chrome.google.com › detail › aapbdbdomjkkjkaonfhkkikfgjllcleb
18 oct. 2017 - This extension adds a button to your browser toolbar. Click the translate icon whenever you want to translate the page you're visiting.
Google Traductor - Chrome Web Store
https://chrome.google.com › detail › google-translate
Traducir esta página
Calificación: 4.4 - 42.319 votos - Gratis - Chrome
This extension adds a button to your browser toolbar. Click the translate icon whenever you want to translate the page you're visiting. The extension also ...
Google Translate on the App Store
https://apps.apple.com › app › google-translate
Traducir esta página
Calificación: 4.5 - 39.238 opiniones - Gratis - iOS - Referencia
5 ago. 2019 - Read reviews, compare customer ratings, see screenshots, and learn more about Google Translate. Download Google Translate and enjoy it ...
Búsquedas relacionadas con google translate
traductor google ingles español
traductor ingles
descargar traductor de google
traductor el mundo
traducir
traductor babylon
usar google translate
buscar de ingles a español
Navegación de páginas
passando il permuto come argomento.
È importante saperlo lì
non sono metodi convenienti per
ogni tipo di evento.
Cerca quali metodi sono
disponibili sul jQuery.
Ho collegato all'appropriato
pagina nelle note dell'istruttore.
jQueryのon()メソッドでイベントリスナーを設定しました。
これは大変よくできていますが、しかし
jQueryにはもっと便利なメソッドが用意されています。
これを見てみてください。
これは全てのinputフィールドのkeypressイベントに対して
イベントリスナーを設定している例です。
この中の、onメソッドとkeypressイベントの部分を
jQueryの便利なメソッドで置き換えることができます。
このやり方ではイベント名を指定する必要がありません。
メソッドの中に含まれているからです。
どうですか?
こっちの方が良さそうです。
keypressファンクションのドキュメントを見ると、
keypressを引数に指定した、on()メソッドのショートカット
それがkeypressファンクションであることがわかります。
この便利なショートカットは、全てのイベントに対応して
用意されているわけではないことに留意してください。
APIのページで、どんなメソッドがあるか調べましょう。
ノートにリンクを記載しておきます。
여러분은 jQuery의 on() 메소드로
이벤트 리스너를 설정했습니다
이것도 아주 잘 작동 하지만
jQuery에는 convenience 메소드도 있어요
한 번 보시죠
이건 저희가 모든 인풋 필드에서의 keypress에 대해
이벤트 리스너를 설정한 방식입니다
jQuery의 convenience 메소드를 이용해서
이걸 다시 쓸 수 있어요
on을 keypress로 바꿔서 말이죠
그리고 이벤트 타입을 새로 명시할 필요는 없어요
왜냐면 convenience 메소드가 이미 암시하고 있으니까요
보이시죠?
훨씬 낫네요
keypress() 문서를 보면 jQuery가
keypress() 함수는 사실 on() 메소드의
간략한 버전이라고 알려주는 걸 볼 수 있어요
keypress를 인자로 보내서 말이죠
중요한 점은 모든 이벤트 타입별로
convenience 메소드가 전부 있는 건
아니라는 점입니다
jQuery API 사이트에서 어떤 메소드가 가능한지 보세요
instructor notes에 페이지를 링크해뒀어요
Você tem configurado ouvintes de
evento usando o método on do jQuery.
Isso funciona muito bem, mas o
jQuery também tem alguns métodos de conveniência
que você pode usar.
Vamos ver.
É assim que configuraríamos
um observador de eventos para um
keypress em cada campo input.
Poderíamos reescrever isso usando o
método de conveniência do jQuery, substituindo o on
pelo keypress.
E agora não temos que especificar
o tipo de evento porque ele está implícito
no método de conveniência.
Está vendo?
Muito mais legal.
Na documentação do keypress, você
verá que o jQuery destaca
que a função keypress é, na verdade,
um atalho para
o método on,
passando keypress como um argumento.
É importante saber que não há
métodos de conveniência para
todos os tipos de evento.
Dê uma olhada em quais métodos
estão disponíveis no site de API do jQuery.
Eu vinculei à
página apropriada nas Notas do instrutor.
Вы настроили слушателей события,
используя метод on в JQuery.
Теперь он работает очень хорошо, но
в JQuery также есть некоторые удобные
методы, которые можно использовать.
Давайте взглянем.
Вот так мы бы установили
слушателя событий для
нажатия клавиши в каждом поле ввода.
Мы могли бы переписать его с помощью
удобного метода JQuery заменив on на
нажатие клавиши.
И теперь нам не нужно указывать
тип события, потому что удобный
метод предполагает его.
Видите?
Гораздо лучше.
Взглянув на документацию по keypress,
видно, что JQuery указывает
что функция keypress на самом деле
является сокращением
метода on,
передавая keypress в качестве аргумента.
Важно понимать, что удобные методы
существуют
не для всех обработчиков событий.
Ознакомьтесь подробнее с доступными
методами на сайте API JQuery.
Соответствующую страничку можно
найти в моих заметках инструктора.
Ви налаштували приймачів подій використовуючи jQuery on метод.
Зараз це працює досить добре, але
jQuery також має деякі зручні методи, які ви можете використати.
Давайте подивимося.
Ось так ми налаштовуємо приймач подій для
натиснення клавіші на кожному полі вводу.
Ми могли б переписати його за допомогою зручного методу jQuery,
замінивши on на натиснення клавіши.
І зараз нам не треба вказувати тип події, тому що
зручний метод пропонує його.
Бачите?
Набагато краще.
Подивіться в документацію keypress, і побачите, що jQuery вказує на те,
що функція keypress - це скорочення для
on методу, вводячи keypress як аргумент
Важливо знати, що немає зручних методів
для кожного типу.
Ознайомтесь з доступними методами на сайті jQuery API.
Потрібні сторінки ви знайдете в замітках інструктора.
Bạn vừa mới thiết lập hàm 'lắng nghe sự kiện' sử dụng phương pháp .on của jQuery
Cách làm này vận hành tốt, nhưng
jQuery còn có vài phương pháp thuận tiện nữa mà bạn có thể sử dụng
Hãy xem ví dụ dưới đây.
Đây là cách chúng ta thiết lập một hàm 'lắng nghe sự kiện' cho
thao tác nhấn phím trên mọi trường nhập thông tin đầu vào.
Chúng ta có thể viết lại hàm này sử dụng phương pháp thuận tiện của jQuery bằng cách thay thế on
bằng keypress (nhập phím).
Và bây giờ chúng ta không phải xác định rõ loại sự kiện vì
phương pháp thuận tiện này đã ngầm định loại sự kiện đó.
Các bạn thấy đó?
Tiện dụng hơn rất nhiều.
Khi xem tài liệu keypress, bạn sẽ thấy rằng jQuery chỉ rõ
hàm keypress thực chất là hàm rút gọn cho
phương pháp on, chuyển thông tin keypress như một đối số
Điều quan trọng cần biết là không có phương pháp tiện dụng nào cho
mọi loại hình sự kiện.
Hãy dành một phút để xem xem có những phương pháp gì trên trang API của jQuery.
Tôi đã tạo đường dẫn đến trang tương ứng trong tài liệu hướng dẫn.
你已经用jQuery的on方法创建了事件监听器
这运行得十分不错
但jQuery还有一些你能使用的快捷方法
我们来看一下
这是我们用来对一个input域创建按键事件监听器的方法
我们能用jQuery的快捷方法 通过用keypress来替换on
来重写这个代码
现在我们不需要指定事件类型
因为快捷方法已经隐含了类型
看到了吗?
更简洁了
看一下keypress文档 你会发现jQuery指出
keypress函数实际上是传入keypress作为参数的on方法的简称
重要的是,要知道并非每个事件类型都有快捷方法
稍微花点时间去jQuery的API站点看一下都有哪些方法可用吧
我在老师笔记里链接到了相关的页面