This article mainly introduces the usage of one () method in jquery, the example analyzes the function and the use skill of one () method, has certain reference value, the friend who needs can refer to the following
The example in this article describes the use of one () method in jquery. Share to everyone for your reference. The specific analysis is as follows:
One () method in jquery: Represents execution only once, with the following code:
The code is as follows: <title>jquery event: Use of One () method </title>
<script type= "Text/javascript" src= "Jquery-1.8.2.min.js" ></script>
<script type= "Text/javascript" >
$ (document). Ready (function () {
$ ("p, H1, H2"). One ("click", Function () {
$ (this). Animate ({fontsize: "+=3px"});
});
});
</script>
<body>
<p> This is a paragraph </p>
</body>
I hope this article will help you with your jquery programming.