摘要:
Object.isObject = function(obj){ return obj != null && typeof obj === 'object' && Array.isArray(obj) === false; } Number.isNumber = function(num){ return typeof num ==='number' && isFinite... 阅读全文
摘要:
// main.js // child.js 阅读全文
摘要:
判断某个整型是否定义在枚举中:Enum.IsDefined(typeof(SyncTimeMethod), i));绑定到ComboBox控件:cmbSyncMethod.DataSource = System.Enum.GetNames(typeof(SyncTimeMethod));获取:(in 阅读全文
摘要:
1:将字体文件(*.ttf)添加到资源文件里,注意资源的名称 2:在Program.cs文件里声明 3:使用 阅读全文
摘要:
/* START TOOLTIP STYLES */ [tooltip] { position: relative; /* opinion 1 */ } /* Applies to all tooltips */ [tooltip]::before, [tooltip]::after { text-transform: none; /* opinion 2 */ font-size... 阅读全文
摘要:
/**注册组件 */ function registerComponent(name){ dm[name] = {}; Vue.component(name + '-component', function(resolve, reject){ $.get('./modules/' + name + '.vue').then(func... 阅读全文
摘要:
//^((25[0-5]|2[0-4]\d|[01]?\d\d?)($|(?!\.$)\.)){4}$//((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))) / 阅读全文
摘要:
编辑/etc/gdm/custom.conf,添加如下内容:[daemon]RemoteGreeter=/usr/libexec/gdmgreeter注:“远程登录界面与本地登录界面相同”功能,若没有此项及[greeter]项则登录界面为简洁型[security]AllowRemoteRoot=tr... 阅读全文