function ddd() {   var input = document.getElementById("内容框id");
        
 var input2 = document.getElementById("替换框id");
        
  if (input.value == null || input.value.replace(/(^s*)|(s*$)/g, "").length == 0 || input.value.length == 0) {


alert('请在“内容框”输入内容')
  }

  else if (input2.value == null || input2.value.replace(/(^s*)|(s*$)/g, "").length == 0 || input2.value.length == 0) {

    
alert('请在“替换框”输入内容')
  }
  
  
 else {


    var content = document.getElementById("内容框id").value;
            var replace = document.getElementById("替换框id").value;

            var lines = content.split('\n');
            var result = "";

            for (var i = 0; i < lines.length; i++) {
                if (lines[i].includes(replace)) {
                    lines[i] = "";
                }
                result += lines[i] + '\n';
            }

            document.getElementById("内容框id").value = result;
        }


 };