mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			486 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			486 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Tea.context(function () {
 | 
						|
	this.params = [
 | 
						|
		{
 | 
						|
			"name": "DOCUMENT_ROOT",
 | 
						|
			"value": "",
 | 
						|
			"nameZh": "文档目录"
 | 
						|
		},
 | 
						|
		{
 | 
						|
			"name": "SCRIPT_FILENAME",
 | 
						|
			"value": "",
 | 
						|
			"nameZh": "脚本文件"
 | 
						|
		}
 | 
						|
	]
 | 
						|
 | 
						|
	this.addParam = function () {
 | 
						|
		this.params.push({
 | 
						|
			"name": "",
 | 
						|
			"value": "",
 | 
						|
			"nameZh": ""
 | 
						|
		})
 | 
						|
		this.$delay(function () {
 | 
						|
			this.$find("form input[name='paramNames']").last().focus()
 | 
						|
		})
 | 
						|
	}
 | 
						|
 | 
						|
	this.removeParam = function (index) {
 | 
						|
		this.params.$remove(index)
 | 
						|
	}
 | 
						|
}) |