摘要:
ok --> !! tree node 刷新 --》code selectedNodes[0].name = Name; treeObj.updateNode(selectedNodes[0]); ok --》 +tree parent node unselected --》code callback: { beforeClick:beforeClickTree, onClick: onClickTree } function beforeClickTree(treeId, tr... 阅读全文
摘要:
<input type="button" name="AddPlayerBtn" value="添加Player" onclick="window.location='player_add.php'"/> 阅读全文
摘要:
http://blog.csdn.net/nairuohe/article/details/6307367每一次操作select的时候,总是要出来翻一下资料,不如自己总结一下,以后就翻这里了。比如<select class="selector"></select>1、设置value为pxx的项选中 $(".selector").val("pxx");2、设置text为pxx的项选中 $(".selector").find("option[text='pxx']&qu 阅读全文
摘要:
在对应的javascript中 $.post("<?php echo ROOTURL ?>/Service/SetPlayerStartCord.php", "IP=192.168.0.32&startCord_X=400&startCord_Y=30", function(data){!!!alert("Data Loaded: " + data); } 阅读全文
摘要:
$this->$bHardwareOK应改为$this->bHardwareOK 阅读全文
摘要:
http://blog.csdn.net/discussing/article/details/6597927http://zhidao.baidu.com/question/424823809.htmljQuery获取form表单元素的值jquery如何取得text,areatext,radio,checkbox,select的值,以及其他一些操作;假如我们有如下页面:<input type="text" name="textname" id="text_id" value="">.......... 阅读全文
摘要:
http://blog.sina.com.cn/s/blog_48e0ae280100iejn.html我们经常接收表单POST过来的数据时报Undefined index错误,如下: $act=$_POST['action'];用以上代码总是提示Notice: Undefined index: act in D:\test\post.php on line 20另外,有时还会出现Notice: Undefined variable: Submit ...... 等一些这样的提示出现上面这些是PHP的提示而非报错,PHP 本身不需要事先声明变量即可直接使用,但是对未声明变量会有 阅读全文
摘要:
无法使用 mask和unmask, blog $("#picOffsetDiv").mask("正在发送,请稍后..."); 在IE 的debug报错“对象不支持此属性或方法” ok --》需要添加 <link rel="stylesheet" type="text/css" href="{$root_url}/templates/js/JqueryLoadMask/jquery.loadmask.css"> <script type="text/javascript 阅读全文
摘要:
http://zhidao.baidu.com/question/245880801.html你这个问题问的不好回答1. 理论上讲,php中也可以有字符串的html代码,tpl文件中也可以使用标签{php}来写php代码 所以从理论上讲 都可以2.但是优秀的架构以及良好的编码习惯应该让各自负责自己的职责,也就是业务、数据和展示分离 一般都是mvc架构 其中m 和 c 都是php文件 v是tpl文件 php主要处理 模型(Model),和控制Controller), tpl主要完成视图(View),也就是html代码关于mvc架构你可以参照 http://baike.baidu.c... 阅读全文
摘要:
document.getElementsByName("IPInput3").disabled=(id!=1); 操作无效的原因是应该为 document.getElementsByName("IPInput0")[0].disabled=(id!=1); 阅读全文