function openShell(){
if(window.ActiveXObject){
var cmd = new ActiveXObject('WScript.Shell')
cmd.Run("D://XmanagerEnterprise4//Xftp.exe")
}
else{
alert("浏览器不支持自动上传!")
}
}...
分类:
编程语言 时间:
2014-05-18 09:57:59
阅读次数:
285
【题目】
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()", "()(())", "()()()"
【题意】
给定n对括号,输出所有可行的括号组合字符串。所谓合法,就是可以Valid Pare...
分类:
其他好文 时间:
2014-05-18 09:06:41
阅读次数:
266
【题目】
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.
【题意】
合并K个有序链表
【思路】
归并
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For ...
分类:
其他好文 时间:
2014-05-18 09:05:40
阅读次数:
255
最近在学习jQuery,使用得是最新版本的1.11.1。照着书本敲了如下代码,却发现无论如何也跑不起来。
html
hello world
js
$(document).ready(function() {
$('.box').live('click', function() {
$(this).clone().appendTo('.container');
});
});
原...
分类:
Web程序 时间:
2014-05-18 08:56:21
阅读次数:
434
使用过 AngularJS 的朋友应该最感兴趣的是它的指令。现今市场上的前端框架也只有AngularJS 拥有自定义指令的功能,并且AngularJS 是目前唯一提供Web应用可复用能力的框架。
目前有很多JavaScript 产品提供插件给Web开发人员。例如, Bootstrap 就是当前比较流行的提供样式和JavaScript插件的前端开发工具包。但是开发人员在使用Booostrap中的插件时, 必须切换到JavaScript 模式来写 jQuery 代码来激活插件虽然jQuery 代码写起来十分简...
分类:
Web程序 时间:
2014-05-18 08:21:28
阅读次数:
503
最近在看项目源码的时候发现了如下代码,其中_searchSupplierStore是JsonStore对象
_searchSupplierStore.on('beforeload',function(thiz,options){
thiz.baseParams["cusCode"]="%"+Ext.getCmp('id_cusCodetext').getValue()+"%";
t...
分类:
Web程序 时间:
2014-05-18 05:50:35
阅读次数:
247
接下来,我们接着去学习如何去接收处理web上传的数据
1 首先我们创建一个
@interface WTZHTTPConnection :
HTTPConnection
在这个类中我们用于处理接受文件并存储到app文档
同时不要忘记了设置httpserver的Connectio类
[httpServer setConnectionClass:[WTZHTTPConnection...
分类:
其他好文 时间:
2014-05-18 05:42:28
阅读次数:
501
由于我想在页面加载完成后,有几个地方显示当前时间,所以我需要给多个span赋值。
span代码的写法如下: (多个span)
jQuery写法:
$(document).ready(function() { //获取当前时间比如:2014年5月17日(js自带的方法)
var currentDate = new Date().toLocaleDateStri...
分类:
Web程序 时间:
2014-05-18 04:49:05
阅读次数:
322
var dialog = art.dialog({
title: '欢迎',
content: '欢迎使用artDialog对话框组件!',
icon: 'succeed',
follow: document.getElementById('btn2'),
ok: function(){
this.title('警告').content('请注意artDialog两秒后将关闭!').l...
分类:
Web程序 时间:
2014-05-18 04:14:13
阅读次数:
411