【单选题】【消耗次数:1】
某页面中有一个id为main的div,div中有两个图片和一个文本框,下列( )能够完整地复制节点main及div中所有的内容。
document.getElementById(main).cloneNode(true);
document.getElementById(main).cloneNode(false);
document.getElementById(main).cloneNode( );
main.cloneNode( );
参考答案:
复制
纠错
相关题目
【单选题】 某页面中有一个id为main的div,div中有两个图片和一个文本框,下列( )能够完整地复制节点main及div中所有的内容。(选择一项)
①  document.getElementById(main).cloneNode(true);
②  document.getElementById(main).cloneNode(false);
③  document.getElementById(main).cloneNode( );
④  main.cloneNode( );
【多选题】 在javascript中,下面代码表示获取文本框的值,则下列选项中验证文本框为空的条件表达式不正确的是() var userName=document.getElementById(txtName).value;
①  userName==
②  userName.length<=0
③  userName.length<0
④  userName.length=
【多选题】 在javascript中,下面代码表示获取文本框的值,则下列选项中验证文本框为空的条件表达式不正确的是()var userName=document.getElementById(txtName).value;(选择二项)
①  userName==
②  userName.length(=0)
③  userName.length(0)
④  userName.length=
【多选题】 某页面中有一个id为pdate的文本框,下列( )能把文本框中的值改为“2009-10-12”。
①  document.getElementById(pdate).setAttribute(value,2009-10-12);
②  document.getElementById(pdate).value=2009-10-12;
③  document.getElementById(pdate).getAttribute(2009-10-12);
④  document.getElementById(pdate).text=2009-10-12;
【多选题】 某页面中有一个id为pdate的文本框,下列( )能把文本框中的值改为“2009-10-12”。(选择二项)
①  document.getElementById(pdate).setAttribute(value,2009-10-12
②  document.getElementById(pdate).value=2009-10-12
③  document.getElementById(pdate).getAttribute(2009-10-12
④  document.getElementById(pdate).text=2009-10-12
【单选题】 某页面中有两个id分别为mobile和telephone的图片,下面( )能够正确地隐藏id为mobile的图片。
①  document.getElementsByName(mobile).style.display=none;
②  document.getElementById(mobile).style.display=none;
③  document.getElementsByTagName(mobile).style.display=none;
④  document.getElementsByTagName(img).style.display=none;
【单选题】 Although the main characters in the fiction are so true to life, they are certainly _____.
①  imagining
②  imaginative
③  imaginable
④  imaginary
【单选题】 某页面中有两个id分别为mobile和telephone的图片,下面( )能够正确地隐藏id为mobile的图片。(选择一项)
①  document.getElementsByName(mobile).style.display=none
②  document.getElementById(mobile).style.display=none
③  document.getElementsByTagName(mobile).style.display=none
④  document.getElementsByTagName(img).style.display=none
【单选题】 What is their main () of income?
①  source
②  origin
③  save
④  order
【单选题】 main方法是Java应用程序执行的入口点,关于main方法的方法头以下哪项是合法的?( )
①  public static void main()
②  public static void main( String[] args )
③  public static int main(String [] arg )
④  public void main(String arg[] )
随机题目
【单选题】 在下面循环语句中内层循环体S语句的执行总次数为()。 for(int i=0; i<n; i++) for(int j=i; j<n; j++) S;
①  n2
②  (n+1)/2
③  n(n-1)/2
④  n(n+1)/2
【单选题】 存储以下数据,占用存储字节最多的是()。
①  0
②  ‘0’
③  “0”
④  0.0
【单选题】 x>0|| y==5的相反表达式为()。
①  x0 || y!=5
②  x>0 && y==5
【单选题】 程序中主函数的名字为()。
①  main
②  MAIN
③  Main
④  任意标识符
【单选题】 设”int a=15,b=26;”,则”cout<<(a,b);”的输出结果是()。
①  15
②  26,15
③  15,26
④  26
【单选题】 假定下列x和y均为int型变量,则不正确的赋值为()。
①  x+=y++
②  x++=y++
③  x=++y
④  ++x=++y
【单选题】 以下标识符中不全是保留字的是()。
①  caseforint
②  defaultthenwhile
③  boolclasslong
④  gotoreturnchar
【单选题】 假设在程序中 a、b、c 均被定义成整型,所赋的值都大于1,则下列能正确表示代数式的表达式是()。
①  1.0/a*b*c
②  1/(a*b*c)
③  1/a/b/(float)c
④  1.0/a/b/c
【单选题】 设x和y均为bool量,则x && y为真的条件是()。
①  它们均为真
②  其中一个为真
③  它们均为假
④  其中一个为假
【单选题】 下列的符号常量定义中,错误的定义是()。
①  const M=10;
②  const int M=20;
③  const char ch;
④  const bool mark=true;