![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jQuery
Kevin_cai09
无情的bug maker
展开
-
jQuery(一)
一 ,jQuery选择器 jQuery选择器的基本语法大概如下 $(" 元素标签 / #id /.class") 元素选择器 jQuery 元素选择器基于元素名选取元素。 例如:获取页面中p元素,然后点击按钮便将其隐藏 <script> $(document).ready(function(){ $("button").click(function(){ ...原创 2019-01-27 02:05:33 · 102 阅读 · 0 评论 -
jQuery(二)
jQuery操作html jQuery 拥有可操作 HTML 元素和属性的强大方法。 获得内容 - text()、html() 以及 val() 三个简单实用的用于 DOM 操作的 jQuery 方法 text() ----------设置或返回所选元素的文本内容 html() ----------设置或返回所选元素的内容(包括 HTML 标记) val() -----------设置或返回表单字...原创 2019-01-27 15:04:06 · 154 阅读 · 0 评论 -
前后端交互 --- ajax使用
后端 @RequestMapping("/login") @CrossOrigin @Slf4j @Controller public class LoginController { @RequestMapping("/index") public String index(){ return "index"; } @ResponseBody ...原创 2019-04-24 23:43:16 · 1150 阅读 · 0 评论