คำตอบออนไลน์บอกว่าเป็นเพราะ Easy-UI ควรลบสไตล์คลาสในรุ่นที่ต่ำกว่าและเขียน URL ใน JavaScript หากมี URL ในชั้นเรียนนอกจากนี้ยังมี URL ใน JavaScript ซึ่งจะรีเฟรชหน้าสองครั้ง แต่ปัญหาของฉันไม่ได้รับการแก้ไขหลังจากการทดสอบ ต่อมาฉันพบปัญหาผ่านการทดสอบซ้ำ
<ul id = "eva" style = "font-size: 25px;"> </ul>
เพราะฉันเขียนสไตล์บนหน้าการลบสไตล์ในสไตล์สามารถแก้ปัญหาได้ ตอนนี้ฉันแนบต้นไม้ Ajax Dynamic Tree และรหัสตารางกริดที่สมบูรณ์
<html> <head> <title> ต้นไม้ </title> <link href = "../../ content/jqeasyui/ธีม/ค่าเริ่มต้น/easyui.css" rel = "stylesheet" type = "css"/> <link href = " src = "../../ scripts/jQuery-1.4.4.min.js" type = "text/javascript"> </script> <script src = "../../ scripts/jQuery.unobtriuse-ajax.js" type = "ข้อความ/javascript" src = "../../ scripts/jQuery.easyui.min.js" type = "text/javascript"> </script> <script src = "../../ scripts/easyui-lang-zh_cn.js" type = "javascript" เวลา var; var treeeva; $ (function () {inittable (); $ ("#selectform"). css ("แสดง", "ไม่มี"); bindsearcheclick (); $ ('#eva'). ต้นไม้ ({url: '/oee/gettree', วิธี: // เริ่มต้นฟังก์ชั่นตารางที่ไม่สามารถใช้งานได้ () {$ ('#tt'). dataGrid ({url: '/oee/รายละเอียด', ชื่อ: 'oee', ความกว้าง: 700, ความสูง: 360, fitcolumns: true, idfield: 'fid', loadmsg: 'ข้อมูลเกี่ยวกับอุปกรณ์ PageList: [10, 20, 30], QueryParams: {// พารามิเตอร์ที่จะส่งผ่านใน noderesult: nodeText, SelectTime: $ ('#selecttime'). datebox ('getValue')}, คอลัมน์: [[// {eid, etypename, thentypeinfot จัดตำแหน่ง: "center"}, {ฟิลด์: 'ชื่อ', ชื่อเรื่อง: 'deltimeoee', ชื่อเรื่อง: 'ชื่อ', ความกว้าง: 80, จัดตำแหน่ง: "center"}, {ฟิลด์: 'ourntimeoee', ชื่อเรื่อง: 'ourntimeoee', ความกว้าง: 80, 'center:' center ' ฟิลด์: 'lattertimeoee', ชื่อ: 'Night Timeoee', ความกว้าง: 80, จัดตำแหน่ง: 'center "}, {ฟิลด์:' delflag ', ชื่อ:' การทำงาน ', ความกว้าง: 80, จัดตำแหน่ง:' ศูนย์ ', ฟอร์ม: ฟังก์ชั่น (ค่า, แถว, ดัชนี) href = 'JavaScript: void (0)'> รายละเอียด </a> "; return str; }}]], onHeaderConTextMenu: ฟังก์ชัน (e, ฟิลด์) {}, onloadsuccess: ฟังก์ชั่น (ข้อมูล) {$ (". selectInfo"). Unbind ("คลิก"); $ (". selectInfo"). bind ("คลิก", function () {doselect ($ (นี่) .attr ("fid"), เวลา); return false;}); - } function doselect (fid, time) {var reg = new regexp ("-", "g"); var strobj = fid.toString (); var newsstr = strobj.replace (reg, "$"); $ ('#selectframe'). attr ('src', '/oee/getselectinfo/' + fid + '/' + เวลา); $ ('#selectForm'). CSS ('Display', 'Block'); $ ('#selectForm'). กล่องโต้ตอบ ({width: 470, ความสูง: 470, modal: true, title: "แสดงรายละเอียด", การล่มสลาย: true, minimal: true, maximizable: true, resizable: true, ปุ่ม: [{id: 'btnselect', ข้อความ: $ ("#selectForm"). กล่องโต้ตอบ ("ปิด");}}]}); } // ผูกเหตุการณ์คลิกของฟังก์ชั่นการค้นหา bindsearcheclick () {// linkbutTonsearch $ ("#linkbutToneSearch") คลิก (ฟังก์ชั่น () {var nodes = $ ('#eva'). ต้นไม้ ('getChecked'); var s = '; สำหรับ (var i = 0; += โหนด [i] .id; } </script> </head> <body> <div> <div> <div> <div style = "margin: 23px 0;"> </div> <div style = "padding: 5px; border-radius: 5px;"> <ul id = "eva"> id = "selecttime"/> <a id = "linkButToneSearch" href = "javaScript: void (0)" data-options = "iconcls: 'icon-search'"> query </a> </div> <table id = "tt" iconcls = "icon-edit" src = "javascript: void (0)" frameBorder = "0"> </iframe> </div> </div> </div> </div> </body> </html>