 	content = @config['content'] or ''
 	okVal = @config['okVal'] or '确定'
 	cancelVal = @config['cancelVal'] or '取消'
-	btn = (if @config['ok'] then '<a class="btn btn-ok">' + okVal + '</a>' else '') + (if @config['cancel'] then '<a class="btn btn-cancel">' + cancelVal + '</a>' else '')
+	btn = (if @config['ok'] isnt false then '<a class="btn btn-ok">' + okVal + '</a>' else '') + (if @config['cancel'] isnt false then '<a class="btn btn-cancel">' + cancelVal + '</a>' else '')
 
 	# 插入内容
 	div.innerHTML = title + '<div class="tan-content">' + content + '</div><div class="tan-btn-area">' + btn + '</div>'


		# 执行回调显示前回调
		@config['onShow'].call(@) if isFunction(@config['onShow'])

		# 按钮绑定事件
		@node.querySelector('.btn-ok').addEventListener('click',()->
			self.config['ok'].call(self) if isFunction(self.config['ok'])
		,false) if @node.querySelector('.btn-ok')

		@node.querySelector('.btn-cancel').addEventListener('click',()->
			k = self.config['cancel'].call(self) if isFunction(self.config['cancel'])
			if k is false
				return k
			else if self

			@mask.style.opacity = 0 if @mask

			@config['onClose'].call(@) if isFunction(@config['onClose'])
			_fireEvent.call(self, 'close') if self.listeners and self.listeners['close']
			if @node
				if not @config['out']
					@config['out'] =
