有恒ccs

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  前端

ajax参数意义
摘要:function(){ $.ajax({ type: "GET", url: "test.json", data: {username:$("#username").val(), content:$("#content").val()}, dataType: "json", success: fun 阅读全文

posted @ 2022-01-16 23:31 有恒ccs 阅读(36) 评论(0) 推荐(0) 编辑

jq取出带html标签的文本
摘要:function getSimpleText(html) { var re1 = new RegExp("<.+?>", "g");//匹配html标签的正则表达式,"g"是搜索匹配多个符合的内容 var msg = html.replace(re1, '');//执行替换成空字符 return m 阅读全文

posted @ 2021-11-16 18:04 有恒ccs 阅读(126) 评论(0) 推荐(0) 编辑

jQuery基本取值和赋值
摘要:选择器:元素选择器$("p"),id选择器$("#test"),.class选择器$(".test") $("#id").val("这是赋值"); $("#spanid").html(value); //给span赋值 $("#spanid").text();取值span $("#divywxt") 阅读全文

posted @ 2021-10-13 15:02 有恒ccs 阅读(802) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示