请问哪里能找到系统的.net标准控件开放给JS的接口,
这些控件的很多属性,用JS去调用或者更改的时候,
语法上面都会有些差异,
比如1个listbox的效果
<script type="text/javascript">
function selectlist(listbox){
var sel = listbox.options[listbox.selectedIndex];
listbox.remove(listbox.selectedIndex);
if (listbox.id=='ListBox1'){
var listbox2=document.getElementById('ListBox2');
}else{
var listbox2=document.getElementById('ListBox1');
}
listbox2.add(sel);
}
</script>
跟后台操作listbox的方法和属性都是不一样的语法,后台是Items
做这个函数花了好多时间,
不知道哪里有全面的JS操作.net控件的资料。
这些控件的很多属性,用JS去调用或者更改的时候,
语法上面都会有些差异,
比如1个listbox的效果
<script type="text/javascript">
function selectlist(listbox){
var sel = listbox.options[listbox.selectedIndex];
listbox.remove(listbox.selectedIndex);
if (listbox.id=='ListBox1'){
var listbox2=document.getElementById('ListBox2');
}else{
var listbox2=document.getElementById('ListBox1');
}
listbox2.add(sel);
}
</script>
跟后台操作listbox的方法和属性都是不一样的语法,后台是Items
做这个函数花了好多时间,
不知道哪里有全面的JS操作.net控件的资料。
没有合适的资料啊
参考:http://www.w3school.com.cn/
一语道破天机啊,