jsjsjs】的更多相关文章

var TooL = {}; (function(t){ function common(){ console.log("common"); } var a = function(){}; a.prototype.get = function(){ console.log("a.get"); }, a.prototype.set = function(){ console.log("a.set"); }, a.prototype.CM = com…
这个想法早就有的 (写tab下拉菜单)就觉得自己对js不是很熟   所以一直没有写 花了不少时间 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>tab下拉菜单</title> <style type="text/css"> *{padding: 0px;margin: 0px;text-decoration…
1.charAt(index) charAt(index):返回字符串中指定位置的字符 var str = 'abcdefghi'; console.log(str.charAt()); // 输出 c 2.concat() concat():用于连接多个字符串 var str1 = 'hello '; var str2 = 'world!'; console.log(str1.concat(str2)) // 输出 hello world! 3.indexOf(str,[m]) indexOf…