11 2014 档案
摘要:Js:$scope.renderHtml = function (html_code) { return $sce.trustAsHtml(html_code);};Html:
阅读全文
摘要:"use strict"/************************************************************************************* * 面包屑组件 * *****************************************...
阅读全文
摘要:/** * 检查密码强度 * 字符集:数字,字母,标点 * 空:返回0,长度==0 * 弱:返回1,长度=8 || 有两种字符 * 强:返回3,长度>=8 || 三种字符 * @param value * @return 0|1|2|3 */ checkPass: function (value){ var result = 0; if(value....
阅读全文
摘要:'use strict';/** * currency * usage: * * symbol为可选currency */angular.module('my-currency', []).directive('currency', ['$filter', function($filter){ ...
阅读全文
摘要:/** * 兼容Ie & Firefox 的CopyToClipBoard */function copyToClipBoard(txt) { if (window.clipboardData) { // IE window.clipboardData.clearData(); ...
阅读全文