<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>EasyUI 測試</title> <link rel="stylesheet" type="text/css" href="../jquery/easyui-themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="../jquery/easyui-themes/icon.css"> <script type="text/javascript" src="../jquery/jquery.js"></script> <script type="text/javascript" src="../jquery/jquery.easyui.min.js"></script> <script type="text/javascript" src="../jquery/easyui-lang-zh_TW.js"></script> </head> <body> <div class="easyui-tabs" style="width:300px;height:200px;" data-options="tools:'#tool-1'"> <div title="標題 1" style="padding:10px;">內容 1</div> <div title="標題 2" style="padding:10px;">內容 2</div> <div title="標題 3" style="padding:10px;">內容 3</div> </div> <div id="tool-1"> <a href="#" id="add" class="easyui-linkbutton" iconCls="icon-add">新增</a> <a href="#" id="remove" class="easyui-linkbutton" iconCls="icon-remove">刪除</a> </div> <script language="javascript"> $(document).ready(function(){ $("#add").bind("click",function(){ $.messager.alert("Info","新增"); }); $("#remove").bind("click",function(){ $.messager.alert("Info","移除"); }); }); </script> </body> </html>