Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

dj / web-dj-wechat

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • web-dj-wechat
  • ..
  • tool
  • number.tool.js
  • 崔彦峰's avatar
    svn to git · 2068f14e
    崔彦峰 committed Nov 20, 2025
    2068f14e Browse Files
number.tool.js 202 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12
/** 数字工具类 */
var numberTool = {
	// 判断是否为数字
	isNumber : function(str) {
		var pattern = /^\d+$/i;
		if (pattern.test(str)) {
			return true;
		} else {
			return false;
		}
	}
};