//html <table id="dailyDevTable"></table> //js $(function () { initTable(); }); function initTable() { var oTable = new TableInit(); oTable.Init(); } var TableInit = function () { var oTableInit = new Object(); //初始化Table oTableInit.
<!DOCTYPE=html> <html> <head> <script src="js/jquery.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ var range = 50; //距下边界长度/单位px var ele
一.ajax例子:ajaxReturn("ok","eval")->thinkphp中ajax的返回值的方法,返回参数为ok,返回类型为eval(字符串) 1.MainController.class.php <?php namespace Ajaxtest\Controller; use Think\Controller; class MainController extends Controller { public function zhuye()