`
huangyongxing310
  • 浏览: 494086 次
  • 性别: Icon_minigender_1
  • 来自: 广州
文章分类
社区版块
存档分类
最新评论

dataViewCommonJs

 
阅读更多
// var _elementIdToDataMap={};


var commonDebugFlag = true;

//视图数据改变通用处理(更新数据对象里的值)
function commonOnchangeFun(elementId) {
	commonDebug(elementId, "commonOnchangeFun elementId");
	var value = getElementVal("#" + elementId);
	commonDebug(value, "commonOnchangeFun value");
	var data = dataViewCommonJs.elementIdToDataMap[elementId].data;
	commonDebug(data, "commonOnchangeFun data");
	var field = dataViewCommonJs.elementIdToDataMap[elementId].field;
	commonDebug(field, "commonOnchangeFun field");

	//更新数据对象里的值
	data[field]=value;
}


// var initDataPage = {
// 	defaultFormValue:data,
// 	formValue:{},
// 	modelId:"app",
// 	formFieldDes:{}
// };
// formDataInit(initDataPage);


function commonFormDataInit(initData) {
	// var defaultFormValue=deepClone(initData.defaultFormValue);
	var formValue=deepClone(initData.defaultFormValue);
	initData.formValue=formValue;
	observe(initData.formValue,initData,initData.modelId);
	//
	//初始值进行一次赋值
	// objToObjByField(defaultFormValue,initData.formValue);

	commonDebug(dataViewCommonJs.elementIdToDataMap, "formDataInit elementIdToDataMap");
	commonDebug(initData.formValue, "formDataInit data");
};

//
function observe(data,initData,modelId) {
	if (!data || typeof data !== 'object') {
		return;
	}
	// 取出所有属性遍历
	var keys= Object.keys(data);
	commonDebug(keys, "observe keys");

	for(var i=0 ;i<keys.length;i++){
		var key = keys[i];
		var  modelIdTemp = modelId + "_" + key;
		commonDebug(modelIdTemp, "observe modelIdTemp");
		//=====================
		if (data._fieldInfoObject === undefined) {
			data._fieldInfoObject = {};
		}
		data._fieldInfoObject[key] = {
			// _initData:initData,
			fieldToElementId:modelIdTemp,
			formFieldDes:initData.formFieldDes,
		};

		//=====================Watch
		if (data._fieldWatchObject === undefined) {
			data._fieldWatchObject = {};
		}
		data._fieldWatchObject[key] = {
			// _initData:initData,
			// fieldToElementId:modelIdTemp,
			// formFieldDes:initData.formFieldDes,
			watchFunList:[],
		};
		//=====================

		//=====================
		if(dataViewCommonJs.elementIdToDataMap[modelIdTemp]!=undefined){
			throw modelIdTemp+"已经存在!"
		}

		dataViewCommonJs.elementIdToDataMap[modelIdTemp] = {data:data,field:key};

		//=====================

		defineReactive(data, key, data[key],initData,modelIdTemp);
	}
};

function defineReactive(data, key, val,initData,modelId) {
	observe(val,initData,modelId); // 监听子属性
	Object.defineProperty(data, key, {
		enumerable : true, // 可枚举
		configurable : false, // 不能再define
		get : function () {
			commonDebug("key = " + key + ",val = " + val, "defineReactive get");
			return val;
		},
		set : function (newVal) {
			commonDebug("key = " + key + ",newVal = " + newVal, "defineReactive set");
			var oldVal =val;
			val = newVal;
			//============
			commonFieldWatchDeal(key,data,newVal,oldVal);
			//============
			commonUpdateView(key,data);
		}
	});
}


function commonFieldWatchDeal(key,data,newVal,oldVal) {
	// commonDebug(field, "updateView field");


	var watchFunList = data._fieldWatchObject[key].watchFunList;

	if(watchFunList.length==0){
		return;
	}

	// commonDebug(key, "commonFieldWatchDeal key");

	for(var i=0 ;i<watchFunList.length;i++){
		commonDebug(key, "commonFieldWatchDeal key");
		watchFunList[i](newVal,oldVal);
	}
}


function commonUpdateView(field,data) {
	commonDebug(field, "updateView field");
	commonDebug(data, "updateView data");

	var fieldInfoObject = data._fieldInfoObject[field];
	var fieldToElementId = fieldInfoObject.fieldToElementId;
	// var ElementId = fieldToElementIdMap[field];
	// setElementVal('#' + fieldToElementId, data[field]);

	commonUpdateViewDeal(fieldToElementId,field,data);
}

function commonUpdateViewDeal(elementId,field,data) {
	setElementVal('#' + elementId, data[field]);
}


function commonAddWatch(fieldString,initData,fun) {
	var fieldStringTemp = replaceAll(fieldString,"\\.","_");
	var key = initData.modelId  +"_"  + fieldStringTemp;
	if(dataViewCommonJs.elementIdToDataMap[key]==undefined){
		throw "请先调用commonFormDataInit进行初始化"
	}
	var data = dataViewCommonJs.elementIdToDataMap[key].data;
	commonDebug(data, "commonAddWatch data");
	var field = dataViewCommonJs.elementIdToDataMap[key].field;
	commonDebug(field, "commonAddWatch field");
	if(data._fieldWatchObject[field]==undefined){
		throw "请先调用commonFormDataInit进行初始化"
	}
	var watchFunList = data._fieldWatchObject[field].watchFunList;
	commonDebug(watchFunList, "commonAddWatch watchFunList");
	if(watchFunList==undefined){
		throw "请先调用commonFormDataInit进行初始化"
	}
	if(fun){
		watchFunList.push(fun)
	}else{
		throw "请先输入正确的回调函数"
	}
}



var dataViewCommonJs={
	//全部存放id对应的数据对象和字段名,commonOnchangeFun里进行使用
	elementIdToDataMap:{},
	commonOnchangeFun:commonOnchangeFun,
	commonFormDataInit:commonFormDataInit,
	commonAddWatch:commonAddWatch,


}









<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="../../miniui/scripts/jquery-1.11.1.min.js" type="text/javascript"></script>
	<script src="../commonJs.js" type="text/javascript"></script>
	<script src="../jqCommonJs.js" type="text/javascript"></script>
	<script src="./dataViewCommonJs.js" type="text/javascript"></script>
<!--	dataViewCommonJs-->

	<style>

	</style>


</head>
<body>

<div id="app">
	<input type="text" id="app_name" onchange="dataViewCommonJs.commonOnchangeFun(this.id)">

	<input type="text" id="app_test_id" onchange="dataViewCommonJs.commonOnchangeFun(this.id)">
	<p id="show-txt"></p>
</div>

</body>

</html>
<script type="text/javascript">

	// var modelDataIdMap = {
	// 	app_name : {
	// 		id : "app_name",
	// 		modelDataField : "name",
	// 		type : 'input',
	// 		modelData : data,
	// 	}
	//
	// }

	//全部存放id对应的数据对象和字段名,commonOnchangeFun里进行使用
	// var _elementIdToDataMap={};


	// //视图数据改变通用处理(更新数据对象里的值)
	// function commonOnchangeFun(elementId) {
	// 	commonDebug(elementId, "commonOnchangeFun elementId");
	// 	var value = getElementVal("#" + elementId);
	// 	commonDebug(value, "commonOnchangeFun value");
	// 	var data = _elementIdToDataMap[elementId].data;
	// 	commonDebug(data, "commonOnchangeFun data");
	// 	var field = _elementIdToDataMap[elementId].field;
	// 	commonDebug(field, "commonOnchangeFun field");
	//
	// 	//更新数据对象里的值
	// 	data[field]=value;
	// }

	var ss =[];
	commonDebug(ss, "commonAddWatch ss");

	ss.push(function () {

	})
	var data = {
		name : 'kindeng',
		test : {id : '22'},
		fsize : '4545'
	};

	var initDataPage = {
		defaultFormValue:data,
		formValue:data,
		modelId:"app",
		formFieldDes:{}
	};

	dataViewCommonJs.commonFormDataInit(initDataPage);

	initDataPage.formValue.name="shdjfh";

	// var applyINfoData = {
	// 	app : {
	// 		modelKey : 'app',
	// 		modelDataDes : {},
	// 		modelData : data,
	// 	}
	//
	// }

	// dataViewCommonJs.commonAddWatch('name',initDataPage,function (newVal,oldVal) {
	// 	commonConsole(newVal, "commonAddWatch newVal");
	// 	commonConsole(oldVal, "commonAddWatch oldVal");
	//
	// 	initDataPage.formValue.fsize = 'aadd';
	// })

	dataViewCommonJs.commonAddWatch('test.id',initDataPage,function (newVal,oldVal) {
		commonConsole(newVal, "commonAddWatch newVal");
		commonConsole(oldVal, "commonAddWatch oldVal");

		initDataPage.formValue.name = 'aadd';
	})

	// dataViewCommonJs.commonAddWatch('fsize',initDataPage,function (newVal,oldVal) {
	// 	commonConsole(newVal, "commonAddWatch newVal");
	// 	commonConsole(oldVal, "commonAddWatch oldVal");
	//
	// 	// initDataPage.formValue.name = 'aaddsdasdas';
	// })




	// formDataInit(initDataPage);
	//
	// function formDataInit(initData) {
	//
	// 	observe(initData.formValue,initData,initData.modelId);
	// 	commonDebug(_elementIdToDataMap, "_elementIdToDataMap");
	// 	//
	// 	// commonDebug(initData.formValue, "initData.formValue");
	// 	commonDebug(initData.formValue, "initData.formValue");
	// };
	//
	//
	// function observe(data,initData,modelId) {
	// 	if (!data || typeof data !== 'object') {
	// 		return;
	// 	}
	// 	// 取出所有属性遍历
	// 	var keys= Object.keys(data);
	// 	commonDebug(keys, "keys");
	//
	// 	for(var i=0 ;i<keys.length;i++){
	// 		var key = keys[i];
	// 	// for(var key in data){
	// 	// 	if (initData.watchFunList === undefined) {
	// 	// 		initData.watchFunList = {};
	// 	// 	}
	// 	// 	initData.watchFunList[key] = function ( key,data,initData) {
	// 	// 		commonDebug("sub", "sub");
	// 	// 	}
	//
	// 		// for(var key in data){
	// 		var  modelIdTemp = modelId + "_" + key;
	//
	// 		//=====================
	// 			if (data._fieldInfoObject === undefined) {
	// 				data._fieldInfoObject = {};
	// 			}
	// 			data._fieldInfoObject[key] = {
	// 				// _initData:initData,
	// 				fieldToElementId:modelIdTemp,
	// 				formFieldDes:initData.formFieldDes,
	// 			};
	//
	// 		//=====================
	// 		// if (initData._fieldToElementIdMap === undefined) {
	// 		// 	initData._fieldToElementIdMap = {};
	// 		// }
	// 		//
	// 		// // var  modelIdTemp = modelId + "_" + key;
	// 		// initData._fieldToElementIdMap[key] = modelIdTemp;
	// 		//=====================
	// 		_elementIdToDataMap[modelIdTemp] = {data:data,field:key};
	//
	// 		defineReactive(data, key, data[key],initData,modelIdTemp);
	// 	}
	//
	//
	// 	// Object.keys(data).forEach(function (key,initData) {
	// 	// 	if (data.watchFunList === undefined) {
	// 	// 		data.watchFunList = {};
	// 	// 	}
	// 	// 	data.watchFunList[key] = function ( key,data,initData) {
	// 	// 		commonDebug("sub", "sub");
	// 	// 	}
	// 	//
	// 	// 	if (data.fieldToElementIdMap === undefined) {
	// 	// 		data.fieldToElementIdMap = {};
	// 	// 	}
	// 	// 	data.fieldToElementIdMap[key] = initData.modelId + "_" + key;
	// 	//
	// 	// 	defineReactive(data, key, data[key],initData);
	// 	// });
	// };
	//
	// function defineReactive(data, key, val,initData,modelId) {
	// 	observe(val,initData,modelId); // 监听子属性
	// 	Object.defineProperty(data, key, {
	// 		enumerable : true, // 可枚举
	// 		configurable : false, // 不能再define
	// 		get : function () {
	// 			commonDebug("key = " + key + ",val = " + val, "defineProperty get");
	// 			return val;
	// 		},
	// 		set : function (newVal) {
	// 			commonDebug("key = " + key + ",newVal = " + newVal, "defineProperty set");
	// 			val = newVal;
	//
	// 			updateView(key,data);
	// 		}
	// 	});
	// }
	//
	// function updateView(field,data) {
	// 	commonDebug(field, "updateView field");
	// 	commonDebug(data, "updateView data");
	//
	// 	var fieldInfoObject = data._fieldInfoObject[field];
	// 	var fieldToElementId = fieldInfoObject.fieldToElementId;
	// 	// var ElementId = fieldToElementIdMap[field];
	//
	// 	setElementVal('#' + fieldToElementId, data[field]);
	// }
	//
	// function Dep() {
	// 	this.subs = [];
	// }
	//
	// Dep.prototype = {
	// 	addSub : function (sub) {
	// 		this.subs.push(sub);
	// 	},
	// 	notify : function () {
	// 		this.subs.forEach(function (sub) {
	// 			sub.update();
	// 		});
	// 	}
	// };




	// commonDebug(data, "data");
	// observe(data);
	// data.name = 'dmq'; // 哈哈哈,监听到值变化了 kindeng --> dmq
	// data.name = 'dmq2'; // 哈哈哈,监听到值变化了 kindeng --> dmq
	// data.name = 'dmq3'; // 哈哈哈,监听到值变化了 kindeng --> dmq
	// data.name = 'dmq4'; // 哈哈哈,监听到值变化了 kindeng --> dmq
	// data.name = 'dmq5'; // 哈哈哈,监听到值变化了 kindeng --> dmq
	// var dd = data.name;
	// commonDebug(dd, "dd");
	//
	// data.name = 'aadd'; // 哈哈哈,监听到值变化了 kindeng --> dmq
	// var dd = data.name;
	// commonDebug(dd, "dd");
	// commonDebug(data, "data");



	// var obj = {}
	// Object.defineProperty(obj, 'txt', {
	// 	get: function () {
	// 		return obj
	// 	},
	// 	set: function (newValue) {
	// 		document.getElementById('txt').value = newValue
	// 		document.getElementById('show-txt').innerHTML = newValue
	// 	}
	// })
	// document.addEventListener('keyup', function (e) {
	// 	obj.txt = e.target.value
	// })

</script>
















// var _elementIdToDataMap={};


var commonDebugFlag = true;

//视图数据改变通用处理(更新数据对象里的值)
function commonOnchangeFun(elementId) {
	commonDebug(elementId, "commonOnchangeFun elementId");
	var value = getElementVal("#" + elementId);
	commonDebug(value, "commonOnchangeFun value");
	var data = dataViewCommonJs.elementIdToDataMap[elementId].data;
	commonDebug(data, "commonOnchangeFun data");
	var field = dataViewCommonJs.elementIdToDataMap[elementId].field;
	commonDebug(field, "commonOnchangeFun field");

	//更新数据对象里的值
	data[field]=value;
}


// var initDataPage = {
// 	defaultFormValue:data,
// 	formValue:{},
// 	modelId:"app",
// 	formFieldDes:{}
// };
// formDataInit(initDataPage);


function commonFormDataInit(initData) {
	// var defaultFormValue=deepClone(initData.defaultFormValue);
	var formValue=deepClone(initData.defaultFormValue);
	initData.formValue=formValue;
	observe(initData.formValue,initData,initData.modelId,initData.formFieldDes);
	//
	//初始值进行一次赋值
	// objToObjByField(defaultFormValue,initData.formValue);

	commonDebug(dataViewCommonJs.elementIdToDataMap, "formDataInit elementIdToDataMap");
	commonDebug(initData.formValue, "formDataInit data");
};

//
function observe(data,initData,modelId,formFieldDes) {
	if (!data || typeof data !== 'object') {
		return;
	}
	// 取出所有属性遍历
	var keys= Object.keys(data);
	commonDebug(keys, "observe keys");

	for(var i=0 ;i<keys.length;i++){
		var key = keys[i];
		var  modelIdTemp = modelId + "_" + key;
		commonDebug(modelIdTemp, "observe modelIdTemp");
		//=====================
		if (data._fieldInfoObject === undefined) {
			data._fieldInfoObject = {};
		}
		data._fieldInfoObject[key] = {
			// _initData:initData,
			fieldToElementId:modelIdTemp,
			formFieldDes:initData.formFieldDes,
		};

		//=====================Watch
		if (data._fieldWatchObject === undefined) {
			data._fieldWatchObject = {};
		}
		data._fieldWatchObject[key] = {
			// _initData:initData,
			// fieldToElementId:modelIdTemp,
			// formFieldDes:initData.formFieldDes,
			watchFunList:[],
		};
		//=====================

		//=====================
		if(dataViewCommonJs.elementIdToDataMap[modelIdTemp]!=undefined){
			throw modelIdTemp+"已经存在!"
		}

		var aa = formFieldDes[key];
		var bb = formFieldDes.id;
		dataViewCommonJs.elementIdToDataMap[modelIdTemp] = {data:data,field:key,dataFieldDes:formFieldDes[key]};

		//=====================

		defineReactive(data, key, data[key],initData,modelIdTemp,formFieldDes[key].formFieldDes);
	}
};

function defineReactive(data, key, val,initData,modelId,formFieldDes) {
	observe(val,initData,modelId,formFieldDes); // 监听子属性
	Object.defineProperty(data, key, {
		enumerable : true, // 可枚举
		configurable : false, // 不能再define
		get : function () {
			commonDebug("key = " + key + ",val = " + val, "defineReactive get");
			return val;
		},
		set : function (newVal) {
			commonDebug("key = " + key + ",newVal = " + newVal, "defineReactive set");
			var oldVal =val;
			val = newVal;
			//============
			commonFieldWatchDeal(key,data,newVal,oldVal);
			//============
			commonUpdateView(key,data);
		}
	});
}


function commonFieldWatchDeal(key,data,newVal,oldVal) {
	// commonDebug(field, "updateView field");


	var watchFunList = data._fieldWatchObject[key].watchFunList;

	if(watchFunList.length==0){
		return;
	}

	// commonDebug(key, "commonFieldWatchDeal key");

	for(var i=0 ;i<watchFunList.length;i++){
		commonDebug(key, "commonFieldWatchDeal key");
		watchFunList[i](newVal,oldVal);
	}
}


function commonUpdateView(field,data) {
	commonDebug(field, "updateView field");
	commonDebug(data, "updateView data");

	// var fieldInfoObject = data._fieldInfoObject[field];
	// var fieldToElementId = fieldInfoObject.fieldToElementId;
	// // var ElementId = fieldToElementIdMap[field];
	// // setElementVal('#' + fieldToElementId, data[field]);
	//
	// commonUpdateViewDeal(fieldToElementId,field,data);

	dataViewCommonJs.viewUpdateFlag=true;
}

function commonUpdateViewDeal(elementId,field,data) {
	setElementVal('#' + elementId, data[field]);
}


function commonAddWatch(fieldString,initData,fun) {
	var fieldStringTemp = replaceAll(fieldString,"\\.","_");
	var key = initData.modelId  +"_"  + fieldStringTemp;
	if(dataViewCommonJs.elementIdToDataMap[key]==undefined){
		throw "请先调用commonFormDataInit进行初始化"
	}
	var data = dataViewCommonJs.elementIdToDataMap[key].data;
	commonDebug(data, "commonAddWatch data");
	var field = dataViewCommonJs.elementIdToDataMap[key].field;
	commonDebug(field, "commonAddWatch field");
	if(data._fieldWatchObject[field]==undefined){
		throw "请先调用commonFormDataInit进行初始化"
	}
	var watchFunList = data._fieldWatchObject[field].watchFunList;
	commonDebug(watchFunList, "commonAddWatch watchFunList");
	if(watchFunList==undefined){
		throw "请先调用commonFormDataInit进行初始化"
	}
	if(fun){
		watchFunList.push(fun)
	}else{
		throw "请先输入正确的回调函数"
	}
}

function viewUpdateDealFun() {
	var keys = Object.keys(dataViewCommonJs.elementIdToDataMap);

	for(var i=0 ;i<keys.length;i++){
		var key = keys[i];
		var data = dataViewCommonJs.elementIdToDataMap[key].data;
		commonDebug(data, "commonAddWatch data");
		var field = dataViewCommonJs.elementIdToDataMap[key].field;
		commonDebug(field, "commonAddWatch data");
		// var field = dataViewCommonJs.elementIdToDataMap[key].field;
		// commonDebug(field, "commonAddWatch data");
		var fieldToElementId = key;
		commonUpdateViewDeal(fieldToElementId,field,data);
	}
}

function viewUpdateTimeoutFun() {
	// commonDebug("", "viewUpdateTimeoutFun");
	if(dataViewCommonJs.viewUpdateFlag==true){
		viewUpdateDealFun();
		dataViewCommonJs.viewUpdateFlag=false;
	}
	window.setTimeout(viewUpdateTimeoutFun, 300);
}



var dataViewCommonJs={
	viewUpdateFlag:false,//视图更新标志,true时才会进行视图数据更新
	viewUpdateTimeout:window.setTimeout(viewUpdateTimeoutFun, 300),
	//全部存放id对应的数据对象和字段名,commonOnchangeFun里进行使用
	elementIdToDataMap:{},
	commonOnchangeFun:commonOnchangeFun,
	commonFormDataInit:commonFormDataInit,
	commonAddWatch:commonAddWatch,


}








<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="../../miniui/scripts/jquery-1.11.1.min.js" type="text/javascript"></script>
	<script src="../commonJs.js" type="text/javascript"></script>
	<script src="../jqCommonJs.js" type="text/javascript"></script>
	<script src="./dataViewCommonJs.js" type="text/javascript"></script>
	<!--	dataViewCommonJs-->

	<style>

	</style>


</head>
<body>

<div id="app">
	<input type="text" id="app_name" onchange="dataViewCommonJs.commonOnchangeFun(this.id)">

	<input type="text" id="app_test_id" onchange="dataViewCommonJs.commonOnchangeFun(this.id)">
	<p id="show-txt"></p>
</div>

</body>

</html>
<script type="text/javascript">

	// var modelDataIdMap = {
	// 	app_name : {
	// 		id : "app_name",
	// 		modelDataField : "name",
	// 		type : 'input',
	// 		modelData : data,
	// 	}
	//
	// }

	//全部存放id对应的数据对象和字段名,commonOnchangeFun里进行使用
	// var _elementIdToDataMap={};

	// //视图数据改变通用处理(更新数据对象里的值)
	// function commonOnchangeFun(elementId) {
	// 	commonDebug(elementId, "commonOnchangeFun elementId");
	// 	var value = getElementVal("#" + elementId);
	// 	commonDebug(value, "commonOnchangeFun value");
	// 	var data = _elementIdToDataMap[elementId].data;
	// 	commonDebug(data, "commonOnchangeFun data");
	// 	var field = _elementIdToDataMap[elementId].field;
	// 	commonDebug(field, "commonOnchangeFun field");
	//
	// 	//更新数据对象里的值
	// 	data[field]=value;
	// }

	var ss = [];
	commonDebug(ss, "commonAddWatch ss");

	ss.push(function () {

	})
	var data = {
		name : 'kindeng',
		test : {
			id : '22',
			trt : 'sdsf'
		},
		fsize : '4545'
	};

	var initDataPage = {
		defaultFormValue : data,
		formValue : data,
		modelId : "app",
		formFieldDes : {
			name : {type : 'input'},
			fsize : {type : 'input_num'},
			test : {
				formFieldDes : {
					id : {type : 'tefst'},
					trt : {type : 'trt'}
				}
			},
		}
	};

	dataViewCommonJs.commonFormDataInit(initDataPage);

	initDataPage.formValue.name = "shdjfh";

	// var applyINfoData = {
	// 	app : {
	// 		modelKey : 'app',
	// 		modelDataDes : {},
	// 		modelData : data,
	// 	}
	//
	// }

	// dataViewCommonJs.commonAddWatch('name',initDataPage,function (newVal,oldVal) {
	// 	commonConsole(newVal, "commonAddWatch newVal");
	// 	commonConsole(oldVal, "commonAddWatch oldVal");
	//
	// 	initDataPage.formValue.fsize = 'aadd';
	// })

	dataViewCommonJs.commonAddWatch('test.id', initDataPage, function (newVal, oldVal) {
		commonConsole(newVal, "commonAddWatch newVal");
		commonConsole(oldVal, "commonAddWatch oldVal");

		initDataPage.formValue.name = 'aadd';
	})

	// dataViewCommonJs.commonAddWatch('fsize',initDataPage,function (newVal,oldVal) {
	// 	commonConsole(newVal, "commonAddWatch newVal");
	// 	commonConsole(oldVal, "commonAddWatch oldVal");
	//
	// 	// initDataPage.formValue.name = 'aaddsdasdas';
	// })


</script>




























分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics