php:5.5,操作系统:ubuntu13.10 网站文本编辑器使用的是ueditor,测试上传图片显示后台配置项未成功加载,上传插件不能正常使用。 查阅了ueditor的文档,有关运行测试那里先访问ueditor/controller.php,提示出错,再访问ueditor/php/con...
分类:
Web程序 时间:
2014-08-31 11:46:51
阅读次数:
1084
function ten2eight(x){var s=[];var r='';while(x>0){ s.push(x%8); x=parseInt(x/8);}while(s.length>0){ r=r+s.pop();}return r;}N=(N div 8)*8+(N mod 8) (....
分类:
Web程序 时间:
2014-08-31 10:30:21
阅读次数:
239
时隔多日,对promise有了多一点点的了解。最近用angularjs 做开发,所以研究了一下它的 $q功能不算很强大,算是简化版的 Q.js参考了一下源码,不过我的等级还差很多...作为学习,我自己又重写了一篇。这次的比较整齐。代码也少了 . $q = function (async...
分类:
编程语言 时间:
2014-08-31 04:59:00
阅读次数:
201
在编写javascript代码时,有时需要用到滚动条的宽度,然而不同浏览器下滚动条的宽度可能不同。在jquery ui源代码中发现这样的一段代码:var scrollbarWidth=function () { if (cachedScrollbarWidth !== undefine...
分类:
编程语言 时间:
2014-08-31 00:17:40
阅读次数:
262
打开function opentree(){var dialog = art.dialog({ title: '选择提交部门', content:jQuery("#mygroup").html(), id: 'D345'});}关闭art.dialog({id: ‘D345′}).close();等...
分类:
其他好文 时间:
2014-08-30 22:53:30
阅读次数:
344
这里是array方法的一些总结,具体的可以看后面的链接:
public member function
std::array::begin
iterator begin() noexcept;
const_iterator begin() const noexcept;
返回一个指向array容器第一个元素的iterator.
...
分类:
其他好文 时间:
2014-08-30 21:48:20
阅读次数:
382
这里是array方法的一些总结,具体的可以看后面的链接:
public member function
std::array::size
constexpr size_type size() noexcept;
返回array里面元素的数目。
Parameters
none
Return Value
array中元素的数目。
...
分类:
其他好文 时间:
2014-08-30 21:47:40
阅读次数:
340
这里是array方法的一些总结,具体的可以看后面的链接:
public member function
std::array::operator[]
reference operator[] (size_type n);
const_reference operator[] (size_type n) const;
返回array容器中位置为...
分类:
数据库 时间:
2014-08-30 21:46:40
阅读次数:
382
JavaScript原型继承的陷阱JavaScript默认采用原型继承。虽然没有类(class)的概念,它的函数(function)可以充当构造器(constructor)。构造器结合this,new可以构建出类似Java的类。因此,JavaScript通过扩展自身能模拟类式(class-based...
分类:
编程语言 时间:
2014-08-30 21:38:20
阅读次数:
279
整理了下抓取页面的一些函数方便以后使用 //抓取页面function getcontents($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setop...
分类:
Web程序 时间:
2014-08-30 20:17:39
阅读次数:
244