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

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

  •  
  •   s5s5 ·
    s5s5 · Dec 10, 2014 · 8644 views
    This topic created in 4197 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
        1
    xjliao  
       Dec 10, 2014
    不是 他是用了google的Blockly工具画的 具体内部封装不清楚 我猜如果是用这个工具写的画 也就样 先确定一个正方形左上角的坐标 然后确定下边长! 然后run 估计就出来了
    pepsin
        2
    pepsin  
       Dec 10, 2014
    rect(0,0,100,100);
    kingda
        3
    kingda  
       Dec 10, 2014
    应该是hello world啊!不按套路出牌啊!
    X140Yu
        5
    X140Yu  
       Dec 10, 2014
    http://studio.code.org/ 应该是这个网站上的
    raincious
        6
    raincious  
       Dec 10, 2014
    @demon386

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