在终端里输入下面命令即可让它们显示出来。 defaults write com.apple.finder AppleShowAllFiles -bool true 如果想恢复隐藏,可以用这个命令: defaults write com.apple.finder AppleShowAllFil...
分类:
移动开发 时间:
2014-07-31 20:35:27
阅读次数:
211
什么事都不做的函数就是一个空函数:def kong(): passprint dir(kong())即便是一个空函数,他也会有如下属性:['__call__', '__class__', '__closure__', '__code__', '__defaults__', '__delattr__....
分类:
编程语言 时间:
2014-07-31 19:34:17
阅读次数:
307
NSUserDefaults API中英文文档简介及使用
Overview
The NSUserDefaults class provides a programmatic interface for interacting with the defaults system. The defaults system allows an application to customize its behavior to match a user’s preferences. For example, y...
添加规则$.extend($.fn.validatebox.defaults.rules, { requireRadio: { validator: function(value, param){ var input = $(...
分类:
其他好文 时间:
2014-07-29 21:09:02
阅读次数:
943
1.停止mysql2.命令行启动mysqlmysqld --defaults-file="c:\mysql\mysql server 5.1\my.ini" --console --skip-grant-tables3.无密码登录后执行以下sqlupdate mysql.user set passw...
分类:
数据库 时间:
2014-07-29 14:12:18
阅读次数:
325
/*** javascript拖放元素*/ function Sortable(cfg){ this.cfg = $.extend({},defaults,cfg || {}); this._init();};$.extend(Sortable.prototype,{ // 函数初始化 _init....
分类:
编程语言 时间:
2014-07-27 10:08:22
阅读次数:
187
控制台运行://显示defaults write com.apple.finder AppleShowAllFiles -bool true//隐藏defaults write com.apple.finder AppleShowAllFiles -bool false
分类:
其他好文 时间:
2014-07-26 13:42:34
阅读次数:
202
// 悬浮置顶; (function ($) { $.fn.crumbsFixedPosition = function (options) { var defaults = { cName: 'fixed_pos' } var ...
分类:
Web程序 时间:
2014-07-26 00:20:36
阅读次数:
303
根据项目要求,对于一些信息的验证也越来越特殊,当你发现EasyUI-validatebox提供的常用的validType验证类型已经满足不了你时,你可以选择自己自定义新的validType来完成信息验证一:自定义新的validType需要重新$.fn.validatebox.defaults.rul...
分类:
其他好文 时间:
2014-07-23 16:25:41
阅读次数:
457
instance method '*****' not found (return type defaults to 'id')...
分类:
其他好文 时间:
2014-07-21 23:27:44
阅读次数:
188