yuesu/Content/themes/cms01/js/baoliao.js

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

function submitsave(submiturl,fromurl,logintype) {	
		$(".msg").each(function(i){
			if (this.innerHTML!="*")
			     this.innerHTML = "";
		});		
		//判断标题
		if ($("input[name='title']").val().length <1) {
			$("#title_msg")[0].innerHTML = "* 标题不能为空!"; 			
            return false; 
		}
		if ($("textarea[name='detail']").val().length <1) {
			$("#detail_msg")[0].innerHTML = "* 作品内容不能为空!"; 			
            return false; 
		}	
        if (logintype == 0) {
            $("#submit").attr("disabled", true);
			
        }	
		
		//表单组合字符串,如下格式
		/*
		 username: $("input[name='username']").val(), 
		 userpass: $("input[name='userpass']").val(),
         class_depths:$("input[name='class_depths']").val(),
         area_depths:$("input[name='area_depths']").val(),*/
        var evaltxt = "";
        $(".input1 input").each(function(i){    
			if (this.name!= undefined && this.name!=null && this.name!=''){
			  if (evaltxt!="")
				  evaltxt += "," + this.name + ":escape($(\"input[name='" + this.name + "']\").val())";
			  else
				  evaltxt += this.name + ":escape($(\"input[name='" + this.name + "']\").val())";
			}
        });
		$(".nofuhao input").each(function(i){    
			if (this.name!= undefined && this.name!=null && this.name!=''){
			  if (evaltxt!="")
				  evaltxt += "," + this.name + ":$(\"input[name='" + this.name + "']\").val()";
			  else
				  evaltxt += this.name + ":$(\"input[name='" + this.name + "']\").val()";
			}
        });
		
		
       //select表单
      $(".input1 select").each(function (j) {
		  if (this.name!= undefined && this.name!=null && this.name!='')
		  {
              if (evaltxt != "")
                  evaltxt += "," + this.name + ":escape($(\"select[name='" + this.name + "']\").val())";
              else
                  evaltxt += this.name + ":escape($(\"select[name='" + this.name + "']\").val())";
		  }
      });
      var reg = new RegExp("\n", "g");
	  //textarea表单
      $(".input1 textarea").each(function (j) {
		  if (this.name!= undefined && this.name!=null && this.name!=''){
			  if (evaltxt != "")
				  evaltxt += "," + this.name + ":escape($(\"textarea[name='" + this.name + "']\").val().replace(reg, \"chr(13)\"))";
后面还有 41 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。