aiaiask.com©

开花即结果 提问即答案

招商资源
原始问题:

招商资源

$("#merchantResource").show();

        } else {
        //非招商资源
      $("#merchantResource").hide();
}

//非租赁物业,隐藏租金信息栏位
if (propertyType.value != "3") {
  $("#rentalInfo").hide();
} else {  // 租赁物业,显示租金信息栏位
  $("#rentalInfo").show();

  // 设定租期单位,年/月/日 其他时间单位不可选择。
  if (rentalUnit.value == '1' || rentalUnit.value == '2' || rentalUnit.value == '3') {  // 1:年 2:月 3:日 其他的不显示。  显示其他的话,需要将else中的“display:none”去掉。   注意:如果想要显示其他的,则还要在后台加上对应的值。所以此处只能使用if else来分开处理了。   by danielinbiti, 2018-08-03 16:27 

    $(".otherRentalUnit").hide();  // 默认隐藏其他单位选项

    if (rentalUnit.value != '1' && rentalUnit.value != '2' && rentalUnit.value != '3') {  // 1:年 2:月 3:日 其他的显示出来。   注意:如果想要显示其他的,则还要在后台加上对应的值。所以此处只能使用if else来分开处理了。   by danielinbiti, 2018-08-03 16:27 

      $(".otherRentalUnit").show();

      var otherRental = document.getElementById('otherRental');     /* 具体是几个小时、几天、几周 */

      otherRental.onblur = function () {                            /* 失去焦点后 */

        var reg = /^[1-9]\d*$/;                                     /* 正整数 */       by danielinbiti, 2018-08-03 17:46          

        if (!reg.test(this.value)) {                                /* 若不是正整数 */     by danielinbiti, 2018-08-03 17
招商资源
https://www.aiaiask.com/ask/10212.html
AI / 模型Siliconflow
时间 / DATEApril 15, 2023, 12:35 PM
语言zh-CN
IP / 区域河北 唐山