摘要: angularjs 1.x导出Excel方法,常用的有2种 1. 直接导出table为xls service中加入 1 homeServiceMoudule.factory('Excel',['$window', '$sce','ConfigService', '$localStorage',fun 阅读全文
posted @ 2020-02-18 14:01 herowalking 阅读(896) 评论(0) 推荐(0) 编辑
摘要: 1. 查看系统版本 cat /etc/issue cat /etc/redhat-release cat /etc/system-release 2. 查看系统是64位还是32位 getconf LONG_BIT 阅读全文
posted @ 2017-06-05 11:46 herowalking 阅读(99) 评论(0) 推荐(0) 编辑
摘要: netstat -ano 查看已占用端口 netstat -ano|findstr "8088" tasklist|findstr "19284" 查看系统安装的补丁 wmic qfe list full | findstr 401 阅读全文
posted @ 2016-09-12 20:23 herowalking 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 选择器描述[attribute] 用于选取带有指定属性的元素。 [attribute=value] 用于选取带有指定属性和值的元素。 [attribute~=value] 用于选取属性值中包含指定词汇的元素。 [attribute|=value] 用于选取带有以指定值开头的属性值的元素,该值必须是整 阅读全文
posted @ 2016-08-18 16:28 herowalking 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1.表单验证 要使用表单验证,必须确保form标签有一个name属性,通常需要在 form 标签中加上 novalidate 属性, 这将禁用浏览器自带的验证功能,从而使用AngularJS提供的验证。 <form name="appForm" novalidate> </form> 提交按钮中配合 阅读全文
posted @ 2016-07-06 13:33 herowalking 阅读(160) 评论(0) 推荐(0) 编辑
摘要: js正则用法示例: var nameReg = /^[a-zA-Z0-9_-]{4,12}$/;if(!nameReg.test(tmp.instance_name)) { $("#vmsNameNotReg").fadeIn(800); setTimeout(function(){ $("#vms 阅读全文
posted @ 2016-06-17 12:07 herowalking 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 1. MySQL批量删除指定前缀表 Select CONCAT( 'drop table ', table_name, ';' ) FROM information_schema.tables Where table_name LIKE 'mytaobao_%'; 执行完上方的sql后将下方的结果c 阅读全文
posted @ 2016-05-25 13:40 herowalking 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1. js实现小数转百分比 Number.prototype.toPercent = function(n) { n = n || 0; return (Math.round(this*Math.pow(10, n + 2)) / Math.pow(10, n)).toFixed(n) + '%'; 阅读全文
posted @ 2016-05-23 21:23 herowalking 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1. 修改xampp自带的mysql默认密码: 【转载】 MySQL 的“root”用户默认状态是没有密码的,所以在 PHP 中您可以使用 mysql_connect("localhost","root","") 来连接 MySQL 服务器;如果您想为 MySQL 中的“root”用户设置密码,请在 阅读全文
posted @ 2016-05-16 09:09 herowalking 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Success is like being pregnant; everyone congratulates you but no one knows how many times you got fucked. 阅读全文
posted @ 2016-05-03 14:19 herowalking 阅读(204) 评论(0) 推荐(0) 编辑