由买买提看人间百态

topics

全部话题 - 话题: javascript
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
G***G
发帖数: 16778
1
来自主题: Returnee版 - ruby javascript
there is a lot of advanced programmar in China, specially for ruby and
javascript.
Why do you prefer a sea turtle?
I think a local softshell turtle can do it much better.
y*h
发帖数: 107
2
页面的其它部分都能显示, 只有一个JAVASCRIPT显示不出来. 谢谢
p**r
发帖数: 5853
3
【 以下文字转载自 PDA 讨论区 】
发信人: pker (骂客.咱刻薄), 信区: PDA
标 题: Re: 问问技术大牛:现在学java还是javascript好?
发信站: BBS 未名空间站 (Thu Apr 25 19:27:46 2013, 美东)
说实话,我之前一直也在考虑这问题。
如何才能一劳永逸的搞定一份工作。
其实现在回头看看工作的这10年,发现这只是一个幻想,
人生就是在不断蹂躏和反蹂躏中度过,不存在稳定,
用句特土逼的话套的话,就是如果要说什么稳定,那不稳定是稳定的。
即使你才气横溢,霸气侧漏,大学没毕业就搞定了一辈子所要的钱,
也经不住后来自己的折腾,肯定过了了几天好日子,就想着再折腾,再牛逼一点,
不追求钱,就开始追求自己当精神领袖乐。。。。
所以与其想什么稳定,还不如多想想如何能恶劣的环境下怒放。。
毕竟就算你成功100次,只要失败一次,就是满脸的土,以前的辉煌和荣耀直接成了屁。
j**o
发帖数: 47
4
Good pay.
Pls send me a msg or apply at http://www.deliveryagent.com/job-board/
Professional experience building rich client-side application using
JavaScript / JQuery / AJAX or other programming languages
Solid understanding of Object-oriented and MVC principles (please provide
code example)
Experience with consuming web services in XML and JSON formats
Strong understanding of HTML5 and CSS3
Desire to learn new technology and programming languages
Detail oriented and excellent trouble shooting ... 阅读全帖
f*******d
发帖数: 12693
5
来自主题: SanFrancisco版 - 请教javascript的问题
我的win 7 x64,上面要跑js文件。
我用wscript xxx.js就出来"There is no script engine for file extension '.js'"
,请问这是怎么回事?
我怎么才能在这上面跑javascript呢?
y****t
发帖数: 10233
6
来自主题: SanFrancisco版 - 4行javascript绕过NY时报paywall
NY时报最近穷疯了,开始charge online content.花了四千万美元搞了个收费系统.
(这些evil for profit msm media!...)
结果被四行javascript轻松破解.
New York Times Paywall Breached With Four Lines of Code
http://www.pcmag.com/article2/0,2817,2382386,00.asp
z***e
发帖数: 5393
7
我在试着用javascript做动画效果,就是用timer不停移动几个div和img,比如从左移
到右,围着一个中心转,或者放大缩小之类。
IE8上面看起来很流畅啊,换了FF/Chrome就是磕磕巴巴的,有点“掉帧”的感觉,而且
是完全肉眼可见的,不是我心理作用。
那些评测是怎么回事?
z***e
发帖数: 5393
8
?一直都在用IE上,没觉得慢啊。
那东西充其量就是css一大堆,不会有几个复杂的javascript在跑。
y****n
发帖数: 743
9
两个问题都给你解决。看在我四年没写JavaScript的份上,包子加倍吧。
1. 添加Event Handler到你的SELECT
onchange="OnSelectChange(this)"
2. 拷贝代码到你的SCRIPT段
function OnSelectChange(selectObj)
{
// Create array for sorted selected options
if (!selectObj.sortedSelectedOptions)
selectObj.sortedSelectedOptions = new Array();
// Remove unselected options from the array
orderIndex = 0
for(var i = 0; i < selectObj.sortedSelectedOptions.length; i++)
{
if (selectObj.sortedSelectedOptions[i].selected)
b********7
发帖数: 12906
10
来自主题: Seattle版 - google's memo about javascript (转载)
i don't understand your comments. javascript is just one of many languages
supported by win8. Why is this bad?
b********7
发帖数: 12906
11
来自主题: Seattle版 - google's memo about javascript (转载)
dude..silverlight is still supported by win8..javascript is an additional
option. what's wrong?
S***k
发帖数: 370
12
来自主题: Seattle版 - google's memo about javascript (转载)
It is painful to download large JS files to client side too. When we rely on
Javascript more and more, we have to deal with the download speeding issue
later or sooner.
No need to save a losing market (I mean mobile) by pushing down a widely
used technique (I mean SL).
It is ironic that we talk about “cross platform” when we ignore the
browser compatibility issue.

my
too
top
the
also
N********n
发帖数: 8363
13
来自主题: Seattle版 - google's memo about javascript (转载)

I've been calling Google's ChromeOS and GDocs garbage for a long time.
While they have now finally abandoned the Javascript Titanic, Win/IE
teams are jumping on and declare it a joy ride. Comical but sad & real.
Epic fail.
c****c
发帖数: 605
14
来自主题: Seattle版 - google's memo about javascript (转载)
Most popular apps are done in native iOS? There are apps on iOS that are not
iOS apps? WTF?
Embracing H5/JS is not due to the superiority of the language but because
there is a HUGE developer following. It's much easier for a seasoned
Javascript developer to start developing Win8 apps right now than for him to
study XAML+C# and then develop Win8 apps.
m******r
发帖数: 4351
15
基本上你要装两个插件:session Manager 和no script,就再也不怕了
我用的有freshgot, 下载一些flashget不能直接下的软件之类
downloadhelper 或者videodownload, 下载youtobe之类的网上视频有用
辞典,可惜没有汉语辞典
flashblock, 挡住flash
menu editor 插件装多了一定要有一个
scrapbook , 类似网文快捕的东东
session manager 浏览器崩溃的时候就有用了,必备!
downThemAll! 下载全部连接(可以分类别)
forecastfox天气预报
print preview 打印预览
password hasher
image zoom
Noscript 可根据不同website打开或者关闭javascript,必备!
Ad block 挡广告
翻译网页的东东, 能翻译西班牙文德文法文的,
后来因为乱试插件,浏览器有了点问题(忘了什么问题了),不爽,就resotore回原来的
状态了
关于flashgot:如果你用的flashget是绿色版的话,记住一定要在dos下
g****n
发帖数: 3370
x******n
发帖数: 9057
17
10M元素的整数数组,SpiderMonkey(firefox的javascript引擎)消耗存储40MB,一点
浪费没有(很强啊,它怎么存储这个额外的null值呢。。),SquirrelFish(Safari)消
耗48MB,也不错,V8(Chrome)消耗100MB。
然后把这10M元素反向排序(就是赋值是0-9999999,然后由大到小排序),
SpiderMonkey额外消耗内存80MB,耗时16秒;SquirrelFish额外消耗120MB,耗时19秒
;V8排序1M元素(注意,是1M)的类似数组消耗内存过G,耗时不知道多长,我等不及
把进程kill了(这倒也不一定是V8自己就这么差,可能是Chrome提供的Shell有问题,
虽然按理说不应该会有这么大的overhead)。
作为对照,Python存储10M元素的整数数组消耗内存160M,排序几乎是瞬间完成。
然后我对比测试了下SpiderMonkey(SM)和SquirrelFish(SF):
SM存储一个字符串额外的overhead大约25字节左右,每个字符2字节(JS都是unicode)
SF存储一个字符串额外over... 阅读全帖
x******n
发帖数: 9057
18
我只有虚拟机虚拟的Mac OS,做不得数,哈哈。
而且SquirrelFish的数组排序性能的数据不是来自Safari,而是来自Adobe Air(也是
用SquirrelFish),Safari的数组排序性能要差好多(但是远没有Chrome那么差),因
为Safari和Chrome都是用WebKit,所以自带的Javascript Shell是一样的,只是用的引
擎不同,所以大概Chrome那么差的性能一部分是来自于那个Shell。
x******n
发帖数: 9057
19
不是,我的意思是说,javascript的整数可以是任何数,可以是0,也可以是null,0和
null是不同的,但是这个null要用什么编码来保存呢?又比如如果其中一个元素根本不
是整数,而是个字符串,或者是个object,这要用什么编码来表示呢?如果一个整数有
比如4个字节的overhead,那没问题,可是它的整数存储太高效了,每个就是4字节,那
么这些metadata存在哪里呢?
x******n
发帖数: 9057
20
javascript根本不能查object的size,我是通过task manager看的,10M个元素push进
去,内存占用增加40MB,一点假的也没有。它额外存一些length啥的通过这个自然看不
出来,但是如果有per element的metadata,哪怕只是一个bit,内存占用也应该增加1M
多。
我猜大概是采用了类似压缩的算法,因为整形数组最常用,所以没有metadata就是整形
数组,如果是别的再增加metadata.
z********e
发帖数: 8818
21
【 以下文字转载自 Programming 讨论区 】
发信人: zhuifengke (追风客), 信区: Programming
标 题: JavaScript 问题继续求教(50伪币求答案..)
发信站: BBS 未名空间站 (Mon Mar 31 13:45:56 2014, 美东)
多谢上次这里的大侠帮忙指点,现在基本程序是可以用了。可是有一个地方怎么也找不
出来原因。
程序在这里:
http://js.do/hoccpan/35565
刚load上去的时候可以随便选生字表。可是copy文章,点击测试以后,再点击那个“。
。生字表”的 selection,“可用字”一栏就死活load不上去了。。(uploadlist应该
已经run过的,但是textarea怎么也不refresh。。)
呜呜。。哪个大侠能帮忙看下不?别嘲笑我不会用JQuery,一千多页的书才看了四十多
页就受不了了开做了,平生最不会弄的就是GUI。。。
五十伪币求答案~
a***y
发帖数: 19743
22
来自主题: Apple版 - 写Javascript挺好玩的
totally..
还好我只是调用别人写好的javascript函数
a***e
发帖数: 188
a**e
发帖数: 5794
24
来自主题: BuildingWeb版 - how to process session varible in javascript?
There are many examples of jsp or vbscript,
who can give a javascript example?
thx
N**e
发帖数: 158
25
来自主题: BuildingWeb版 - how to process session varible in javascript?
I believe this will be sufficient for you. It takes me a while to figure out
Session.Contents to add a variable.
y****i
发帖数: 5690
26
来自主题: BuildingWeb版 - Javascript Eval() and IE
Hi, who can help me with this:
str1 = "fieldtype"+typeindex;
vtype = document.query_viewtable.eval(str1).value;
I need to do some dynamic type checking with javascript by this. It works
well with Netscape but doesn't work in IE.
The error message is like "the object doesn't have such property or method".
I think it's the problem of eval(). Cuase the errors disappear if I use
vtype = document.query_viewtable.fieldtype1.value;
Who can kindly give me a hint?
Than
m*******l
发帖数: 2
27
1. 我的网页中有一个Javascript作的菜单,但总是在网页显示的最
后才出现,能不能让它先出现?
2. http://www."
onMouseOver="popUp('elMenu1',event)"
onMouseOut="popDown('elMenu1')"> src=d7_files/bullet2.gif width="12" height="12" border="0">
在上面的语句,怎样在点击联接后,直接显示联接的页面的指定位置
,如:页面的底部?
谢谢大家!
t**********o
发帖数: 124
28
来自主题: BuildingWeb版 - 一个JAVASCRIPT问题:
Hi, ge wei DX
我是JAVASCRIPT 门外汉。I want to create a form with different elements
based on the user's input. But don't know how to do it.
For example:
Given a form which shows only one text field plus a submit button,
after the user enters a number(say, 6), the form then changes to show 6 text
fields, and the original text filed disappeared.
I saw similiar effects before on some website, but forget where they are.
Could anyone here give me some help? Thanx!
tutu
s**********i
发帖数: 711
29
来自主题: BuildingWeb版 - javascript 求救
1, you should use 01.jpg for default rather than
the 01_over.jpg because when the page is loaded
the mouse is likely not over the pictures.
2, the way your javascript accessing the object(picture)
document["bot"] should be avoided: not standard and only
works on cerain browsers. you should use getElementById()
for DOM browsers (NN6, IE5+), document.all for IE4+;
document.layers for NN4.
3, get a better tutorial. don't read this one any more.
M******t
发帖数: 309
30
来自主题: BuildingWeb版 - how to refresh parent page by javascript
B is a link page from parent page A, I want A to be refreshed as soon as B is
reloaded. How to do it by javascript? Thanks a lot.
f******s
发帖数: 8
31
来自主题: BuildingWeb版 - 怎么样加密Javascript
I thought the qustion is Javascript, not jsp.
s**********i
发帖数: 711
32
来自主题: BuildingWeb版 - 怎么样加密Javascript
JSP is not javascript.
p*********r
发帖数: 23
33
来自主题: BuildingWeb版 - 怎么样加密Javascript
yes, you can.
use server-side javascript, although not encrypted, it shields the code from
clients and i assume that's what u want.

意?
s**********i
发帖数: 711
34
来自主题: BuildingWeb版 - 怎么样加密Javascript

only if the server-side javascript can do what you need.
m****y
发帖数: 11
35
来自主题: BuildingWeb版 - Javascript slide show
Hi all,
I finished the code for the slide show using Javascript. But I found a big
problem. Whenever the slide changes, the computer needs to load the next
picture again. Why the pictures are not saved in the user's computer after
after the first time they are showed? Is it possible to preload all the slides
in the computers at the beginning so that the system needn't to load the same
slide again and again. Thank you very much.
b**l
发帖数: 41
36
来自主题: BuildingWeb版 - JavaScript in Netscape
在dreamweaver里写了javascript的东西,ie里看,很好,可是为什么NS里,什么效果也
没有。
定义的function如下

请各位大侠执教。
r*****s
发帖数: 985
37
来自主题: BuildingWeb版 - javascript generated by servlet
Is there any tricky points in it?
The problem I got is that when I add some javascript functions,
"document.write" cannot properly output html codes
any idea about it?
thanks
c***r
发帖数: 4631
38
来自主题: BuildingWeb版 - what level is your Javascript skill?
try mozilla's javascript debugger, called venkman or something
s*****a
发帖数: 1022
39
来自主题: BuildingWeb版 - 请问 Javascript + ASP + ADO ?
javascript一般是用在client side的吧, 不过MS的JScript可以用在ASP里
去MSDN里查查或google
p******f
发帖数: 162
40
来自主题: BuildingWeb版 - 求助: 关于Perl and Javascript

yes, you can use perl to generate whatever document you want, including
javascript, just remember, the output of perl program is what will be
sent to the browser, so make sure it is valid document.
f****y
发帖数: 91
41
来自主题: BuildingWeb版 - the easies javascript question : Help !
Javascript
CreateashortscriptinJavaScriptthatwrites
twolinesoftext.The
firstlineoftextshouldbeinGreenandthes
econdlineoftextinBlue.
WriteonelineofJavaScriptthatpromptsthe
usertoinputhisnameand
assignsthisvaluetoavariablecalleduser_name.
Fortheprompttext,use
"Enteryournamebelow.".
ThisisthetestIreceivedforainternshipI
applied.
IknowslittleaboutJavascript.帮帮偶啊。
f***y
发帖数: 98
42
【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: ferry (死菜了), 信区: Programming
标 题: Javascript: pull-down list to pop-up win
发信站: Unknown Space - 未名空间 (Tue Dec 30 11:23:39 2003) WWW-POST
我做了个pull-down list:
y*****g
发帖数: 9
43
来自主题: BuildingWeb版 - help, about javascript do new window
How can we use javascript to new window, but we need post instead of get.
myWindow=new window("http://www.yahoo.com");
it pops up a windown and goes to www.yahoo.com.
but how can we use post instead of get like a form post
myWindown=new window("http://myserver/myservlet?a=b...");
c*j
发帖数: 20
44
来自主题: BuildingWeb版 - 问一个javascript 和 .NET 的问题
用VB.NET做了一 个web form,form 上有一个button, press button 时,会popup 出一
个 calendar 窗口。Calendar 是用 javascript 写的,平常是 not visible 的,press
button 时才被set 成 visible 的。问题时,此 calendar visible 时,部分被其他
control 遮住了。我已经把 calendar 的 Z-index 设的比其他control 多很多了。不知
道为什麽还是被挡住。 有那位大侠能帮帮忙指点一下吗?谢谢。
a*****e
发帖数: 92
45
【 以下文字转载自 XML 讨论区 】
发信人: aaapple (青青子衿), 信区: XML
标 题: 请教:JavaScript怎么复制一个node(含子节点)?
发信站: BBS 未名空间站 (Wed Mar 7 21:57:29 2007)
我需要通过一个Ajax call拿到一些内容。直到其中返回的一个节点就是HTML,这个节
点包含很多子节点,但整个节点就是一个完整的HTML 模块.所以,我就直接用
insertBefore把它插入到网页上去了。但是,好像<和>被encoded了,所以,不能正确
显示。请问,有没有什么简单的办法可以复制一个xml节点插入到dom中,但是,保持原
来的结构。我不想一级一级的读再重新创建。而且,返回来的HTML不一定是什么结构,
所以,最好是直接复制。谢谢大家。
t*******d
发帖数: 1530
c*****t
发帖数: 1879
47
来自主题: BuildingWeb版 - 这个用Javascript这么做?
我建议你到 w3schools 那把 html, css, dom, javascript 自学一下。
你这样问没结果。
q**1
发帖数: 193
48
来自主题: BuildingWeb版 - 这个用Javascript这么做?
其实我是想了解下那个窗口是怎么“滑”行的, 我对这个效果比较
感兴趣。一般我理解的JavaScript里的document.write是写一个新的
窗口,然后如何控制这个窗口得大小和相对位置,我得找本书看看,
估计还得包括些CSS的东西。。
c****y
发帖数: 1
49
来自主题: BuildingWeb版 - Javascript 做交互图形如何
其实要求不高, 条件是只能用 javascript 和 HTML。
网页显示一个jpg图像,网页用户能够在图上用鼠标画一个虚线框框,矩形的,左键按
下定矩形框的一角,按着左键拉到所要的矩形框的对角放开左键,并报告矩形框相对
jpg图像一角的 x y 坐标值。
搜了不少google来得网站,只有非交互式的画框框。看起来应该能做到,但不确定,就
是没见过能工作的Sample。
f*e
发帖数: 18
50
来自主题: BuildingWeb版 - javascript read txt file on client side
http://www.javascripter.net/faq/reading2.htm
works with any browser that supports DOM
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)