一段 莫名其妙的 JS 代码
发布日期:2021-09-30 11:34:37 浏览次数:7 分类:技术文章

本文共 415 字,大约阅读时间需要 1 分钟。

window.onload = init;

 function init(){
 
  var args = 0;
  if(true){
   alert("xxxxxx");
   args = 2;
  }
  else{
   alert("00000");
   args = 0;
  }
    alert(args);
 }

 

 

=======================================

 

var args = 0;

  var focusPerson = $("#focusPerson"+itemid).html();
    
  if(focusPerson == "设置"){
   $("#focusPerson"+itemid).html("取消");
   args = 1;
  }
  else{
   $("#focusPerson"+itemid).html("设置");
    //args = 0;  //  注释掉 此行 代码,程序才能继续执行, 费解
  }

 

 

alert(args);

转载地址:https://blog.csdn.net/id19870510/article/details/5302844 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:用intellig IDEA开发 Spring MVC第一篇
下一篇:jQuery 选择器 无法取值的时候

发表评论

最新留言

关注你微信了!
[***.104.42.241]2024年04月18日 04时28分59秒