上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
  2016年3月12日
摘要: var str = ''; function fn1(){ var a = '大鸡腿~'; str = a; } fn1(); // alert( str ); function fn2(){ var a = '9999999克拉钻石23456789'; fn3(a); } fn2(); funct 阅读全文
posted @ 2016-03-12 10:00 hduhdc 阅读(278) 评论(0) 推荐(0) 编辑
摘要: var a=1; function fn1(){alert(a);var a=2;} fn1(); alert (a); 先回谈出:未定义; 后探出 :1; 因为在FN1函数里面没有定义a所以开始探出未定义,在函数里面修改a不会影响全局变量。所以第二次探出全局变量a=1; /*var a = 1;f 阅读全文
posted @ 2016-03-12 09:34 hduhdc 阅读(130) 评论(0) 推荐(0) 编辑
  2016年3月10日
摘要: parseint:会认识一些字符+、-、空格,其他的就会截止譬如23hudhchauch结果为:23,对于boollen类型不能转换为1或是0. number:是对整体的转换。对true的转换为1. 显式类型转换(强制类型转换):Number()parseInt()parseFloat() 隐式类型 阅读全文
posted @ 2016-03-10 21:46 hduhdc 阅读(515) 评论(0) 推荐(0) 编辑
摘要: div独占一行 span和div很相似但是span会随着内容的变化而改变宽度; p独占一行height:由字体撑开。 a标签不支持宽和高需要加入dispaly:block; img,input,会排在一行。 overflow:hidden;text-overflow:elipisis表示多余的部分隐 阅读全文
posted @ 2016-03-10 09:37 hduhdc 阅读(132) 评论(0) 推荐(0) 编辑
  2016年3月9日
摘要: 1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5 <title>无标题文档</title> 6 7 <script> 8 9 /* 1 阅读全文
posted @ 2016-03-09 15:51 hduhdc 阅读(151) 评论(0) 推荐(0) 编辑
  2016年3月8日
摘要: div容器内中内容将在边界内换行,(word-wrap)英语句子中单词内不强制换行。(word-break)如果需要词内换行 阅读全文
posted @ 2016-03-08 15:14 hduhdc 阅读(209) 评论(0) 推荐(0) 编辑
  2016年3月7日
摘要: 1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5 <title>无标题文档</title> 6 7 <script> 8 var nu 阅读全文
posted @ 2016-03-07 16:45 hduhdc 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5 <title>无标题文档</title> 6 <style> 7 #div{widt 阅读全文
posted @ 2016-03-07 15:54 hduhdc 阅读(6182) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5 <title>无标题文档</title> 6 </head> 7 8 <body> 阅读全文
posted @ 2016-03-07 15:11 hduhdc 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5 <title>无标题文档</title> 6 <script> 7 window.o 阅读全文
posted @ 2016-03-07 14:40 hduhdc 阅读(460) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页