示例#1
0
 public static bool IsNegativeId(Int64 id)
 {
     if (!Script.IsValue(id))
         return false;
     else if (Script.TypeOf(id) == "string")
     {
         string idStr = id.As<string>();
         if (idStr.StartsWith("-"))
             return true;
         return false;
     }
     else if (Script.TypeOf(id) == "number")
         return id.As<long>() < 0;
     else
         return false;
 }