摘要:
//简单一个布局存放图片 <div class="lb"> <div class="lbt"> <img src="img/lunbo1.jpg" class="imgs"/> <img src="img/lunbo2.jpg" class="imgs"/> <img src="img/lunbo3 阅读全文
摘要:
function Fibonacci($n){ if($n <= 0) { return 0; }elseif($n == 1) { return 1; }else{ return Fibonacci($n - 1) + Fibonacci($n - 2); } } echo Fibonacci(5 阅读全文
摘要:
var lengt = function(s) { let max = 0; let arr = []; for(let i=0,l=s.length;i<l;i++){ let char=s[i]; let index = arr.indexOf(char); if(index! 1){ arr. 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style type="text/css"> #BAgua{ width: 300px; height: 300px; margin: 0 auto; te 阅读全文
摘要:
function arr(a,b){ var sum=0; var sum1=0; for(var i=a;i<=b;i++){ if(i%2!=0){ sum+=i }else{ sum1+=i } } console.log(sum,sum1) } arr(1,100) 阅读全文