回复 1楼Feaonly的帖子
请问通过以下代码添加是否能够正常执行?
- <script language="javascript" type="text/javascript">
- window.onload = function () {
- var spread1 = document.getElementById("<%=FpSpread1.ClientID %>");
- if (document.all) {
- // IE
- if (spread1.addEventListener) {
- // IE9
- spread1.addEventListener("DataChanged", dataChanged, false);
- } else {
- // Other versions of IE and IE9 quirks mode (no doctype set)
- spread1.onDataChanged = dataChanged;
- }
- else
- {
- // Firefox
- spread1.addEventListener("DataChanged", dataChanged, false);
- }
- }
- function dataChanged() {
- alert("the data has changed!");
- }
- </SCRIPT>
复制代码 |