• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
张纯睿
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 133 下一页
2012年7月11日
ztree 使用积累
摘要: 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... 阅读全文
posted @ 2012-07-11 16:18 张纯睿 阅读(138) 评论(0) 推荐(0)
2012年7月9日
html 按钮(input type="button") onclick 页面转跳
摘要: <input type="button" name="AddPlayerBtn" value="添加Player" onclick="window.location='player_add.php'"/> 阅读全文
posted @ 2012-07-09 09:51 张纯睿 阅读(653) 评论(0) 推荐(0)
2012年7月8日
jquery操作select(取值,设置选中)
摘要: 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 阅读全文
posted @ 2012-07-08 17:31 张纯睿 阅读(98) 评论(0) 推荐(0)
2012年7月7日
调试 后台 ajax post 对应的php的方法
摘要: 在对应的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); } 阅读全文
posted @ 2012-07-07 14:10 张纯睿 阅读(125) 评论(0) 推荐(0)
$this->$bHardwareOK = FALSE; 报错“Fatal error: Cannot access empty property ”
摘要: $this->$bHardwareOK应改为$this->bHardwareOK 阅读全文
posted @ 2012-07-07 13:46 张纯睿 阅读(220) 评论(0) 推荐(0)
2012年7月6日
jquery获取input的值
摘要: 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="">.......... 阅读全文
posted @ 2012-07-06 23:24 张纯睿 阅读(424) 评论(0) 推荐(0)
POST过来的数据,php中提示Undefined index
摘要: 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 本身不需要事先声明变量即可直接使用,但是对未声明变量会有 阅读全文
posted @ 2012-07-06 23:07 张纯睿 阅读(345) 评论(0) 推荐(0)
无法使用 mask和unmask,报错“对象不支持此属性或方法”
摘要: 无法使用 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 阅读全文
posted @ 2012-07-06 22:45 张纯睿 阅读(713) 评论(0) 推荐(0)
2012年7月5日
网站使用php+smarty技术,那么哪些代码应放在tpl文件中?哪些应放在php文件中?请举例说明
摘要: 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... 阅读全文
posted @ 2012-07-05 18:36 张纯睿 阅读(307) 评论(0) 推荐(0)
document.getElementsByName("IPInput3").disabled=(id!=1); 操作无效的原因是应该为
摘要: document.getElementsByName("IPInput3").disabled=(id!=1); 操作无效的原因是应该为 document.getElementsByName("IPInput0")[0].disabled=(id!=1); 阅读全文
posted @ 2012-07-05 15:08 张纯睿 阅读(166) 评论(0) 推荐(0)
上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 133 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3