- 浏览: 40164 次
- 性别:
- 来自: 山西
-
最新评论
-
jimoshutong:
看起来有点小复杂啊
明河的shareList jQuery插件分析 -
dasangshu:
也可以在php.ini 里面设置 max_execution ...
php
文章列表
爱笑的人―――很专一又很滥情。一旦真正喜欢上一个人就会很致命,一直把你牢记在心。爱笑的人―――很容易被感动。爱笑的人―――很敏感,看似什么都不计较、不细心,其实是在包容你,所以会装作什么都不知道。爱笑的人―――很正义,讨厌虚伪、谎言,讨厌欺骗。爱笑的人———为了让别人好过,喜欢用谎言但绝对没有心眼不图你什么东西,是善意的爱笑的人―――吃软不吃硬,要知道爱笑的人脾气很硬,不会允许别人的不信任和挑战。爱笑的人―――很重感情,只要是真心认定的朋友,都会真心对待。爱笑的人―――很浪漫,最讨厌软弱拖拉的人,更讨厌自以为是的人。爱笑的人―――不习惯主动和别人套近乎。爱笑的人―――决定要做的事,就会坚持到底。 ...
<script>
var share = {
/**
* 跨框架数据共享接口
* @param {String} 存储的数据名
* @param {Any} 将要存储的任意数据(无此项则返回被查询的数据)
*/
data: function (name, value) {
var top = window.top,
cache = top['_CACHE'] || {};
top['_CACHE'] = cache;
return value ? cache[name] = value : cache[nam ...
突然间 想学习下javascript
无奈很多代码看不懂 只能对着代码一句一句的调试
(function($){
$.fn.shareList = function(options){
//alert(options);
var opts;
var DATA_NAME = "shareList";
//返回API
if(typeof options == 'string'){
if(options == 'api'){
return $(this).data(DATA_NAME).interfa ...
配置 Xdebug
zend_extension_ts=E:\php-5.2.17\ext\php_xdebug-2.1.2-5.2-vc6.dll
xdebug.default_enable = On
xdebug.show_exception_trace = On
xdebug.show_local_vars = 1
xdebug.max_nesting_level = 50
xdebug.var_display_max_depth = 6
xdebug.dump_once = On
xdebug.dump_globals = On
xdebug.dump_unde ...
<script type="text/javascript">
// This is our function to be called with JSON data
function tet(data)
{
alert("ty: " + data.a + ", tr: " + data.b);
}
var url = "http://ganbaobao.com.cn/test.php?callback=tet"; // URL of the external script
...
<script type="text/javascript">
$(document).ready(function(){
var ticker = {symbol: 'IBM', price: 91.42};
function showPrice(data)
{
alert("Symbol: " + data.symbol + ", Price: " + data.price);
}
showPrice(ticker);
$.getJSON(& ...
<script type="text/javascript">
$(document).ready(function(){
//javascript 的封装 匿名自调用函数
(function(){
var tax = 0.5, price = 'drting';
})()
//alert(typeof tax);
//这样在函数外不能访问函数内的变量 模块化编程
var g = (function(){
var tax = 0.5, price = 'dr ...
<?php
class timer {
public $StartTime = 0;
public $StopTime = 0;
public $TimeSpent = 0;
function start(){
$this->StartTime = microtime();
}
function stop(){
$this->StopTime = microtime();
}
function spent() { ...
mysql查询优化学习---1 使用索引
2011-11-15 20:30
索
引是提高查询速度的最重要的工具。当然还有其它的一些技术可供使用,但是一般来说引起最大性能差异的都是索引的正确使用。在MySQL邮件列表中,人们经
常询问那些让查询运行得更快的方法。在大多数情况下,我们应该怀疑数据表上有没有索引,并且通常在添加索引之后立即解决了问题。当然,并不总是这样简单就
可以解决问题的,因为优化技术本来就并非总是简单的。然而,如果没有使用索引,在很多情况下,你试图使用其它的方法来提高性能都是在浪费时间。首先使用索
引来获取最大的性能提高,接着再看其它的技术是否有用。
这 ...
<script type="text/javascript">
String.prototype.trim = function(){
return this.replace(/(?:^\s*)|(?:\s*$)/g,'');
}
var test = ' liuuxiosbo ';
alert(test.trim().length);
</script>
<?php
ignore_user_abort(); //即使Client断开(如关掉浏览器),PHP脚本也可以继续执行.
set_time_limit(0); // 执行时间为无限制,php默认的执行时间是30秒,通过set_time_limit(0)可以让程序无限制的执行下去
$interval=60; // 每隔1分钟运行
do{
$fp = fopen('test.txt','a');
fwrite($fp,'test');
fclose($fp);
sleep($interval); // 等待1分钟
}whi ...
支持中文的 php json 函数
<?php
/**************************************************************
*
* 使用特定function对数组中所有元素做处理
* @param string &$array 要处理的字符串
* @param string $function 要执行的函数
* @return boolean $apply_to_keys_also 是否也应用到key上
* @access public
*
************************ ...