获取url中参数值
摘要:方法一: function GetRequest() {var url = window.location.href; //获取url中"?"符后的字串var theRequest = new Object();if (url.indexOf("?") != -1) {var str = url.s
阅读全文
posted @
2019-08-29 10:28
Chia丶L
阅读(205)
推荐(0)
Js不用for,forEach,map等循环实现九九乘法表
摘要:var str='';function mt(p,n){ if(p<10){ if (n<=p){ str += n+'*'+p+'='+p*n+'\t'; n++; mt(p,n); } else{ n=1; p++; str += '\n'; mt(p,n) } }else{ console.l
阅读全文
posted @
2019-08-27 16:42
Chia丶L
阅读(449)
推荐(0)
js常见面试题
摘要:1. javascript的typeof返回哪些数据类型. 答案:string,boolean,number,undefined,function,object 2. 例举3种强制类型转换和2种隐式类型转换? 答案:强制(parseInt,parseFloat,number) 隐式(== ) 3.
阅读全文
posted @
2019-08-05 18:10
Chia丶L
阅读(25975)
推荐(1)