上一页 1 ··· 84 85 86 87 88
摘要: 可以settings-general-auto import-java项,勾选optimize imports on the fly,在当前项目下会自动清除无效的import,而且这个是随时自动清除的。 参考资料1、使用idea一次性清理所有java文件中多余导入未使用的包 http://blog. 阅读全文
posted @ 2019-04-10 17:49 那些年的代码 阅读(3873) 评论(0) 推荐(0) 编辑
摘要: 1.CTRL + SHIFT + A --> 查找Registry --> 找到并勾选compiler.automake.allow.when.app.running 2. FILE - SETTING - Build - Compiler - bulid project automatically 阅读全文
posted @ 2019-04-10 17:44 那些年的代码 阅读(4198) 评论(0) 推荐(0) 编辑
摘要: 字符十进制转义字符 " &#34; &quot; & &#38; &amp; < &#60; &lt; > &#62; &gt; 不断开空格(non-breaking space) &#160; &nbsp; 阅读全文
posted @ 2019-04-10 17:29 那些年的代码 阅读(194) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function (){//通用方法去输入框前后空格 $("form").on("change",function () { $("form input[type=text]").each(function () { this.value=$.trim(this. 阅读全文
posted @ 2019-04-10 17:25 那些年的代码 阅读(133) 评论(0) 推荐(0) 编辑
摘要: var content=$("content").val(); if(!content){ alert("请输出内容!"); return; } //上述内容相当于判断content=""、content=null、content = undefined、content=0 或者也可以if(cont 阅读全文
posted @ 2019-04-10 17:24 那些年的代码 阅读(60546) 评论(0) 推荐(0) 编辑
摘要: onkeyup="this.value=this.value.replace(/[^\w]/g,'')" onpaste="this.value=this.value.replace(/[^\w]/g,'')" 阅读全文
posted @ 2019-04-10 17:22 那些年的代码 阅读(15309) 评论(0) 推荐(0) 编辑
摘要: chmod是权限管理命令change the permissions mode of a file的缩写。。 u代表所有者,x代表执行权限。 + 表示增加权限。 chmod u+x file.sh 就表示对当前目录下的file.sh文件的所有者增加可执行权限。 阅读全文
posted @ 2019-04-10 16:57 那些年的代码 阅读(16266) 评论(0) 推荐(0) 编辑
摘要: 1.条件中用or,即使其中有条件带索引,也不会使用索引查询(这就是查询尽量不要用or的原因,用in吧); 注意:使用or,又想索引生效,只能将or条件中的每个列都加上索引 2 .对于多列索引,不是使用的第一部分,则不会使用索引。 3.like的模糊查询以%开头,索引失效 4.如果列类型是字符串,那一 阅读全文
posted @ 2018-03-22 18:39 那些年的代码 阅读(2173) 评论(0) 推荐(0) 编辑
上一页 1 ··· 84 85 86 87 88