• 请不要在回答技术问题时复制粘贴 AI 生成的内容
s5s5
V2EX  ›  程序员

奥巴马在编程一小时写了啥代码?

  •  
  •   s5s5 ·
    s5s5 · Dec 10, 2014 · 9066 views
    This topic created in 4361 days ago, the information mentioned may be changed or developed.
    看新闻说是用JS画出来一个正方形,但没有公布源代码,大家有知道的么?
    Supplement 1  ·  Dec 10, 2014
    感谢 @demon386 ,代码是:
    moveForward(100);
    详情请看他的回复
    13 replies  •  2014-12-11 10:32:15 +08:00
    xjliao
    xjliao
    Dec 10, 2014
    1
    不是 他是用了google的Blockly工具画的 具体内部封装不清楚 我猜如果是用这个工具写的画 也就样 先确定一个正方形左上角的坐标 然后确定下边长! 然后run 估计就出来了
    pepsin
    pepsin
    Dec 10, 2014
    2
    rect(0,0,100,100);
    kingda
    kingda
    Dec 10, 2014
    3
    应该是hello world啊!不按套路出牌啊!
    X140Yu
    X140Yu
    Dec 10, 2014
    5
    http://studio.code.org/ 应该是这个网站上的
    raincious
    raincious
    Dec 10, 2014
    6
    @demon386

    当他完成之后应该继续说:
    亲爱的总统,你现在已经知道了什么是JavaScript,接下来,请阅读这两本书: http://www.zero1design.com/2012/09/15/so-you-want-to-learn-javascript/
    greatdk
    greatdk
    Dec 10, 2014
    7
    总统来握手都不带起立的,美帝真是太没统治者的风范了
    yxzblue
    yxzblue
    Dec 10, 2014
    8
    这活动真的太叼了
    21grams
    21grams
    Dec 10, 2014
    10
    总统来了居然不是全体起立,这些人后来都被送到劳改营了吧。
    xuwenmang
    xuwenmang
    Dec 10, 2014
    11
    JS要火了。。
    FindHao
    FindHao
    Dec 10, 2014
    12
    他应该只会那一段吧。。。
    niuer
    niuer
    Dec 11, 2014
    13
    JS要火 +1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3332 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 00:58 · PVG 08:58 · LAX 16:58 · JFK 19:58
    ♥ Do have faith in what you're doing.