uncaught typeerror, var test.match is not a function.
2015-07-05 19:55
585 查看
使用 typeof 查看变量类型。
例如 alert(typeof(testvar));
若是boolean类型,直接用 if(test){ //do one thing }else{ //do another thing } 来使用。
例如 alert(typeof(testvar));
若是boolean类型,直接用 if(test){ //do one thing }else{ //do another thing } 来使用。
相关文章推荐
- Cookie Selection - CF_GYM, 100112C 中位数动态查找
- 位图算法
- MySQL详解(12)-----------MySQL视图
- Unity3D灯光详解
- OfBiz--安装
- 项目管理
- Leetcode 13 Roman to Integer
- Windows下Mysql5.6启用监控执行脚本的日志
- vsftpd上传在网络慢时总会卡住
- Android GPS架构分析(四)
- 实时监控MySql状态
- iTween大解构(一)之抛物线移动
- Android GPS架构分析(三)
- 装箱问题近似算法概述
- C中嵌入python
- linux ls
- Matlab矩阵幂运算
- 【BZOJ】1011 遥远的行星
- 实时监控mysql数据库变化
- iTween研究院之学习笔记Move移动篇(一)