SOURCE

console 命令行工具 X clear

                    
>
console
// function testing(){

//     let a=document.querySelector("#a");
//     let aValue=a.value;
//     let b=document.querySelector("#b");
//     let bValue=b.value;   
//     // console.log(aValue,bValue)

//     if(aValue.indexOf(bValue)>-1){//-1是不包含的意思,大于等于0,也可以。
//         let firstIndex=aValue.indexOf(bValue);
//         let lastIndex=aValue.lastIndexOf(bValue);
//         console.log(firstIndex);
//         console.log(lastIndex);
//     }
//     else{
//         console.log("不包含");
//     }

// let str1="abcdefg";
// let str2=str1.charAt(0).toUpperCase();
// console.log(str2+str1.substring(1));

let a=document.getElementById("a");
let b=document.getElementById("b");
let c=document.getElementById("c");
//点击。绑定事件
function testing(){
    console.log(a.value+b.value+c.value);
}




<p>练习题1</p>
<p> 数据框一<input type=""  id="a"></p>
<p> 数据框二<input type=""  id="b"></p>
<p><input type="" id="c"></p>
<button onclick="testing()">提交</button>
<P>输出abcdefg第一个字母大写</P>
body{
    background-image:url(http://note.youdao.com/yws/res/686/WEBRESOURCEd4a7fb499ce912bb9b756d84a5e7ab21);
    background-repeat: no-repeat;
    background-position: right ;
    margin-right: 200px;
}
p{
    color: white;
}