Problem Description
Corrupt governors always find ways to get dirty money. Paint something, then sell the worthless painting at a high price to someone who wants to bribe him/her on an auction, thi...
分类:
其他好文 时间:
2015-01-09 17:29:52
阅读次数:
335
//格式化金额,小数点几位 function fmoney(money,digit){ ?? ?if(null == money ){ ?? ??? ?return ""; ?? ?} ?? ?money = money +""; ?? ?var array = money.split("."); ?? ?var s =arra...
分类:
Web程序 时间:
2015-01-08 15:46:10
阅读次数:
187
begin ,rollback,commit .当然有的人用begin /begin work .推荐用START TRANSACTION 是SQL-99标准启动一个事务。 start transaction;update from account set money=money-100 wh...
分类:
数据库 时间:
2015-01-08 09:29:44
阅读次数:
238
人民币转换 1 package t0107; 2 3 public class Money { 4 5 private static final char[] data = new char[]{ 6 '零','壹','贰','叁','肆','伍','陆','柒','捌'...
分类:
其他好文 时间:
2015-01-07 21:53:46
阅读次数:
163
活动地址: http://qianbao.baidu.com/hd/huafei?invite_code=HQWS6CSU
良心保证,赶紧参与吧!...
分类:
其他好文 时间:
2015-01-07 11:01:10
阅读次数:
162
SELECT REPLACE(REPLACE(@str, CHAR(13), ''), CHAR(10), '')The below script removes the TAB(Horozontal Tab), Line feed(New line), Carriage Return Charac...
分类:
其他好文 时间:
2015-01-06 02:01:32
阅读次数:
264
/* 如果使用余额,取得用户余额 */
if ((!isset($_CFG['use_surplus']) || $_CFG['use_surplus'] == '1')
&& $_SESSION['user_id'] > 0
&& $user_info['user_money'] > 0)
{
// 能使用余额
$s...
分类:
其他好文 时间:
2015-01-03 11:58:08
阅读次数:
129
下面是死锁情况的一个示例代码package com.qust.demo.money;
class A {
public synchronized void foo(B b) {
System.out.println(Thread.currentThread().getName() + " 进入A的foo");
try {
Thread.sleep(200);
} catch...
分类:
编程语言 时间:
2015-01-03 10:44:01
阅读次数:
248
【设计模式】 策略模式一. 策略模式1. 对相同功能不同实现的一系列算法的封装, 使切换算法时不会影响调用者2. 代码 class Strategy { public static void Test() { double money = 6...
分类:
其他好文 时间:
2015-01-02 17:32:13
阅读次数:
106
BEGIN TRAN Tran_Money --开始事务DECLARE @tran_error int;SET @tran_error = 0; BEGIN TRY UPDATE tb_Money SET MyMoney = MyMoney - 30 WHERE Name...
分类:
数据库 时间:
2014-12-30 16:30:26
阅读次数:
174