摘要: <!Doctype html><html><head> <meta content="text/html" charset="utf-8" http-equiv="content-type"></head><body><script> /** * @params string type 填写弹出框的 阅读全文
posted @ 2017-07-14 18:30 太菜 阅读(1489) 评论(0) 推荐(0) 编辑
摘要: console.log( parseInt("asd123")); //parseInt 值为字符串 如已字符串开头 返回NaNconsole.log( parseInt("123asd")); //parseInt 值为字符串 如已数字开头 返回数字(123)// parseFloat 与 par 阅读全文
posted @ 2017-07-14 13:54 太菜 阅读(1322) 评论(0) 推荐(0) 编辑
摘要: /*js 非布尔值操作 逻辑与 和 逻辑或*//* * 注:( "" , 0 ,undefined ,NaN ,null 转换为 false) * *//*逻辑与*/console.log(( 1 && 1 && "hello" && 2 && 3 && 4 )); // 第一个转换为true 返回 阅读全文
posted @ 2017-07-14 11:34 太菜 阅读(423) 评论(0) 推荐(0) 编辑