课程
/前端开发
/WebApp
/慕课网2048私人订制
不是很明白老师为什么要将board[i][j]为0的设置为getposTop(i,j)+50
2017-10-31
源自:慕课网2048私人订制 2-3
正在回答
lt;emgt;标签只是用于强调文本滴,其浏览器默认样式:斜体不回车
龙虎游戏 XS686·COM真人百家乐 XS686·COM龙源娱乐 XS686·COM皇家国际 XS686·COM锦福娱乐城 XS686·COM海天国际娱乐 XS686·COM澳门游戏网址推荐 XS686·COM太阳城娱乐场 XS686·COM海天国际娱乐 XS686·COM银河娱乐场 XS686·COM新锦江娱乐 XS686·COM 太阳城娱乐城 XS686·COM金鼎娱乐 XS686·COM玉祥娱乐 XS686·COM龙源娱乐城 XS686·COM澳门银河娱乐城 XS686·COM银河娱乐城 XS686·COM百家乐 XS686·COM缅甸锦福娱乐 XS686·COM博狗娱乐城 XS686·COM皇家娱乐场 XS686·COM银河娱乐 XS686·COM银钻娱乐城 XS686·COM缅甸华纳国际 XS686·COMhttp://dblab.xmu.edu.cn/?s=%E9%A6%96%E9%A1%B5-%E9%94%A6%E5%88%A9%E5%9B%BD%E9%99%85%E5%AE%98%E7%BD%91%E5%BE%AE%E4%BF%A1%E7%BD%91%E5%9D%80%E5%BC%80%E6%88%B7%E7%94%B5%E8%AF%9D%3F%E5%AE%98%E7%BD%91TL262%C2%B7%EF%BC%A3%EF%BC%AF%EF%BC%AD%E5%8C%97%E6%B5%B7%E4%BD%93%E8%82%B2http://iias.tsinghua.edu.cn/search/%E9%91%AB%E7%99%BE%E5%88%A9%E5%A8%B1%E4%B9%90%E6%89%8B%E6%9C%BAapp%E5%AE%98%E6%96%B9%E5%BC%80%E6%88%B7%E5%BE%AE%E4%BF%A1%E5%BC%80%E6%88%B7%E7%94%B5%E8%AF%9D%E5%AE%98%E7%BD%91B2024%C2%B7CN%E6%8B%89%E8%90%A8%E7%96%AB%E6%83%85%EF%BC%BD%EF%BC%81https://search.bilibili.com/all?keyword=%E6%B8%AF%E9%83%BD%E8%B4%B5%E5%AE%BE%E4%BC%9A%E7%8E%B0%E5%9C%BA%E5%9C%A8%E4%BB%80%E4%B9%88%E5%9C%B0%E6%96%B9%E5%AE%98%E7%BD%91TL262%C2%B7C%EF%BC%AFM%E9%93%9C%E4%BB%81%E7%94%B5%E5%8F%B0https://b2b.baidu.com/s?q=%E6%96%B0%E7%99%BE%E8%83%9C%E6%B8%B8%E6%88%8F%E7%BD%91%E5%9D%80%E5%85%AC%E5%8F%B8%E6%80%8E%E4%B9%88%E6%B3%A8%E5%86%8C%E4%BC%9A%E5%91%98%E5%AE%98%E7%BD%91TL262%EF%BC%8E%EF%BC%A3%EF%BC%AF%EF%BC%AD%E4%B8%8A%E9%A5%B6%E5%8D%AB%E8%AE%A1%E5%A7%94&from=searchhttp://dblab.xmu.edu.cn/?s=%E7%BC%85%E7%94%B8%E6%B0%B8%E6%98%8C%E5%A8%B1%E4%B9%90%E7%94%B5%E8%AF%9D%E6%8A%95%E6%B3%A8%E7%9B%B4%E8%90%A5%E7%BD%91B2024%C2%B7CN%E9%95%BF%E6%B2%99%E5%8D%AB%E7%94%9F%E5%B1%80%EF%BC%A8%EF%BC%BBhttps://www.oschina.net/search?scope=all&q=%E4%BD%A4%E9%82%A6%E6%9C%80%E6%96%B0%E9%97%BB%E8%81%94%E6%92%AD%E5%BE%AE%E4%BF%A1%E5%BC%80%E6%88%B7%E7%94%B5%E8%AF%9D%E7%BD%91%E5%9D%80TL262.%EF%BC%A3%EF%BC%AF%EF%BC%AD%E9%BB%91%E6%B2%B3%E6%96%B0%E9%97%BB%EF%BD%9Ehttps://wap.zol.com.cn/index.php?c=List_List&keyword=%E6%B1%9F%E8%8B%8F%E6%B3%B0%E5%B7%9E%E7%9C%9F%E4%BA%BA%E9%BE%99%E8%99%8E%E3%80%90TL262%C2%B7%EF%BC%A3%EF%BC%AF%EF%BC%AD%E6%AC%A2%E8%BF%8E%E6%82%A8%E3%80%91%E9%BB%84%E5%86%88%E8%AE%BF%E8%B0%88%EF%BD%96https://www.oschina.net/search?scope=all&q=%E7%BC%85%E7%94%B8%E6%9E%9C%E5%8D%9A%E4%B8%9C%E6%96%B9%E4%BD%9C%E5%81%87%E7%9B%B4%E8%90%A5%E5%BC%80%E6%88%B7%3ATL262%C2%B7%EF%BC%A3%EF%BC%AF%EF%BC%AD%E5%BB%B6%E5%AE%89%E5%8D%AB%E8%A7%86https://www.oschina.net/search?scope=news&q=%E9%91%AB%E7%99%BE%E5%88%A9%E5%B9%B3%E5%8F%B0%E6%80%BB%E9%83%A8%E7%94%B5%E8%AF%9D%E3%80%90TL262%C2%B7%EF%BC%A3%EF%BC%AF%EF%BC%AD%E6%AC%A2%E8%BF%8E%E6%82%A8%E3%80%91%E5%A4%AA%E5%8E%9F%E5%8A%9E%E4%BA%8B%E5%A4%84%EF%BD%89%EF%BD%8A&days=0&onlytitle=0&sort_by_time=0https://www.oschina.net/search?scope=news&q=%E6%9E%9C%E6%95%A2%E8%85%BE%E9%BE%99%E5%9B%BD%E9%99%85%E7%94%B5%E6%8A%95%E9%93%B6%E9%92%BB%E9%9B%86%E5%9B%A2%E3%80%90B2024.CN%E6%AC%A2%E8%BF%8E%E6%82%A8%E3%80%91%E5%AE%9C%E6%98%A5%E4%BC%81%E4%B8%9A&days=0&onlytitle=0&sort_by_time=0http://dblab.xmu.edu.cn/?s=%E8%B7%A8%E5%A2%83%E8%80%81%E8%A1%97%E8%85%BE%E9%BE%99%E5%A8%B1%E4%B9%90%E7%BD%91%E5%9D%80%E9%9B%86%E5%9B%A2%E4%B8%9A%E5%8A%A1%E5%BC%80%E6%88%B7%E5%AE%98%E7%BD%91TL262%C2%B7C%EF%BC%AFM%E5%A4%A7%E5%90%8C%E6%8B%9B%E8%81%98https://search.bilibili.com/all?keyword=%E7%9A%87%E5%AE%B6%E5%9B%BD%E9%99%85%E7%BA%BF%E4%B8%8A%E7%BD%91%E6%8A%95%E5%AE%98%E6%96%B9%E7%BD%91%E5%9D%80B2024%C2%B7CN%E9%BB%84%E5%86%88%E7%BD%91%E7%BA%A2%EF%BC%97https://www.oschina.net/search?scope=all&q=%E5%B1%B1%E8%A5%BF%E9%9C%8D%E5%B7%9E%E7%BD%91%E4%B8%8A%E6%89%8B%E6%9C%BA%E6%8A%95%E6%B3%A8%E5%AE%98%E7%BD%91TL262%C2%B7C%EF%BC%AFM%E5%90%89%E6%9E%97%E7%94%B5%E5%8F%B0%EF%BD%9E%EF%BD%89%EF%BD%82https://www.oschina.net/search?scope=news&q=%E4%B8%87%E4%B8%B0%E8%80%81%E7%99%BE%E8%83%9C%E7%94%B5%E8%AF%9D%E5%BC%80%E6%88%B7%E5%BE%AE%E4%BF%A1%E5%BC%80%E6%88%B7%E7%94%B5%E8%AF%9D%E5%AE%98%E7%BD%91B2024.CN%E6%B2%B3%E6%B1%A0%E4%BA%BA%E5%8A%9B%E8%B5%84%E6%BA%90%EF%BC%95https://list.jd.com/search?keyword=%E7%BC%85%E5%8C%97%E6%96%B0%E7%99%BE%E8%83%9C%E5%A8%B1%E4%B9%90%E5%9C%BA%E5%AE%98%E7%BD%91TL262%C2%B7C%EF%BC%AFM%E6%B3%89%E5%B7%9E%E7%94%B5%E4%BF%A1%EF%BD%9D%EF%BD%91https://mod.3dmgame.com/mods?mods_title=%E9%87%91%E5%B1%B1%E8%B4%B5%E5%AE%BE%E4%BC%9Aapp%E5%AE%98%E7%BD%91TL262%C2%B7C%EF%BC%AFM%E5%AE%BF%E5%B7%9E%E7%94%9F%E6%B4%BBhttp://dblab.xmu.edu.cn/?s=%E7%9A%87%E5%AE%B6%E5%9B%BD%E9%99%85%E5%9C%A8%E7%BA%BF%E5%85%AC%E5%8F%B8%E7%BA%BF%E4%B8%8A%E5%9C%A8%E7%BA%BF%E7%94%B5%E8%AF%9D%E7%9B%B4%E8%90%A5%E5%BC%80%E6%88%B7%3ATL262%C2%B7%EF%BC%A3%EF%BC%AF%EF%BC%AD%E9%98%9C%E6%96%B0%E8%8A%82%E7%9B%AE%E8%A1%A8%EF%BC%A2%EF%BC%90%EF%BD%8Fhttps://list.jd.com/search?keyword=%E7%9A%87%E5%AE%B6%E5%9B%BD%E9%99%85%E6%80%BB%E4%BB%A3%E7%90%86%E7%9B%B4%E8%90%A5%E7%BD%91TL262%C2%B7%EF%BC%A3%EF%BC%AF%EF%BC%AD%E5%BC%A0%E6%8E%96%E7%94%B5%E4%BF%A1%EF%BC%BDhttp://gdh.dict.cn/%E5%B9%BF%E8%A5%BF%E6%A2%A7%E5%B7%9E%E7%9C%9F%E4%BA%BA%E6%96%97%E7%89%9B%E5%AE%98%E7%BD%91B2024%C2%B7CN%E5%B8%B8%E5%BE%B7%E6%AF%95%E4%B8%9A%E7%94%9Fhttp://www.minitu.cn/?s=%E7%BC%85%E7%94%B8%E9%94%A6%E7%A6%8F%E5%9B%BD%E9%99%85%E5%A8%B1%E4%B9%90%E3%80%90%E5%AE%98%E7%BD%91%E2%86%92B2024%C2%B7CN%E3%80%91%E5%98%89%E5%85%B4%E7%83%AD%E9%97%A8%EF%BD%95%EF%BC%93%EF%BD%84https://minecraft.fandom.com/zh/wiki/UserProfile:%E6%96%B0%E4%B8%96%E7%95%8C%E7%BA%BF%E4%B8%8A%E5%AE%A2%E6%9C%8D%E6%B8%B8%E6%88%8F%E7%BD%91%E5%9D%80B2024%C2%B7CN%E8%90%A5%E5%8F%A3%E4%BA%BA%E6%89%8D?variant=zh-hk&cb=&mobileaction=toggle_view_mobilehttps://list.jd.com/search?keyword=%E6%B5%B7%E5%A4%A9%E5%9B%BD%E9%99%85%E6%89%8B%E6%9C%BAapp%E5%BC%80%E6%88%B7%E5%BE%AE%E4%BF%A1%E5%BC%80%E6%88%B7%E7%94%B5%E8%AF%9D%E7%9B%B4%E8%90%A5%E7%BD%91B2024.CN%E6%B7%AE%E5%8C%97%E8%AE%BF%E8%B0%88http://gdh.dict.cn/%E7%BC%85%E7%94%B8%E9%91%AB%E7%99%BE%E5%88%A9%E6%98%93%E4%BF%A1%E7%BD%91%E5%9D%80B2024.%EF%BC%A3N%E5%8E%A6%E9%97%A8%E7%BD%91%E9%80%9Ahttps://www.oschina.net/search?scope=news&q=%E7%BC%85%E7%94%B8%E6%96%B0%E9%94%A6%E6%B1%9F%E5%A8%B1%E4%B9%90%E5%9C%BA%E5%AE%98%E7%BD%91B2024%C2%B7CN%E6%A0%AA%E6%B4%B2%E8%8A%82%E7%9B%AE%E8%A1%A8%EF%BC%85%EF%BC%A7&days=0&onlytitle=0&sort_by_time=0
爱编程的男孩 提问者
$("#grid-container").append('<div class="number-cell" id="number-cell-'+i+'-'+j+'"></div>');
var theNumberCell =$('#number-cell-'+i+'-'+j);
当增加的位置格子在原有的格子的上左离开50的位置,这样当产生数字时,有一个移动的动画效果,其实不移动也是可以产生显示,也可能是为了区分原来格子的位置吧,哈哈个人理解,见笑了
举报
慕课网这款“2048私人订制”通过大神老的讲解学习到游戏结构的开发
1 回答为什么当board[i][j]的值为0的时候离顶端和左端的距离都要加上50?
1 回答id="number-cell-'+i+'-'+j+'"
2 回答为什么要设置不显示时左上加50像素
2 回答老师 您好 亲问一下这句代码var theNumberCell = $('#number-cell-'+i+'-'+j); 为什么会报错呢
3 回答为什么不直接声明board为一个4*4的二维数组呢?