11 2020 档案

js 正则替换html标签
摘要:function deleteTag(str) { var regx = /<[^>]*>|<\/[^>]*>/gm; if(str) return str.replace(regx,"");return ''; } deleteTag('<p>小五老师:</p><p> 其他应收款主要包括:</p> 阅读全文

posted @ 2020-11-19 17:09 神奇的旋风 阅读(2259) 评论(0) 推荐(0) 编辑

【转】mysql查询时,查询结果按where in数组排序
摘要:使用情况:当我们在进行where id in () 查询的时候,如果where in的id查询数组为[2,7,1,4,3],正常情况查询出来的结果顺序为[1,2,3,4,7],这可能不是我们想要的结果,我们期望查出来的结果顺序与where in的顺序一致,这里介绍两个方式: 1.使用find_in_ 阅读全文

posted @ 2020-11-17 15:24 神奇的旋风 阅读(366) 评论(0) 推荐(0) 编辑

导航

< 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
点击右上角即可分享
微信分享提示