平台开发须知
Upcoming SlideShare
Loading in...5
×
 

平台开发须知

on

  • 932 views

前端工程师做app时需要知道的一些知识

前端工程师做app时需要知道的一些知识

Statistics

Views

Total Views
932
Views on SlideShare
932
Embed Views
0

Actions

Likes
1
Downloads
19
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />

平台开发须知 平台开发须知 Presentation Transcript

  • linux, vim, jinja2, nieml, niejs, svn, etc...
  • AGENDA • linux • vim • (jinja2) • • app/ html js • svn
  • Linux
  • LINUX • ls (list) ls project • cd xx (change directory) cd project • mv (move) mv a.txt c.txt • cp (copy) cp a.txt b.txt • vim vim a.txt windows
  • AGENDA • linux • vim • (jinja2) • • app/ html js • svn
  • VIM --- dreamweaver ...
  • VIM 1 • • (esc i,o,a ) • c/v y(yank) p(paste) • ^ $ • H,J,K,L • /,n,N • :s/xxx/aaa :s/xxx/aaa/g :%s/xxx/aaa • undo u redo ctrl+r • till t • gg G ctrl + f ctrl + b
  • AGENDA • linux • vim • (jinja2) • • app/ html js • svn
  • JINJA2 http://jinja.pocoo.org/2/documentation/templates
  • JINJA2 - • {% • {% for %} - {% endfor %} • navigation • {{ • {#
  • JINJA2 - -1 • {%extend “base.html” %} home.html base.html message.html
  • JINJA2 - -2 • {{ super() }} block base.html derived.html
  • JINJA2 - -3 • include sample sample2
  • JINJA2 - -4 • macro html after render
  • JINJA2 - -5 • import a macro macros.html sample.html
  • JINJA2 - • • {% for a in aList %} {{ a }} {% endfor %} • {% if a %} {{ a }} {% endif %} • filters • escape : {{ diary_content | escape }} or {{ diary_content | e }} • more filters: http://jinja.pocoo.org/2/documentation/templates#builtin- filters
  • AGENDA • linux • vim • (jinja2) • • app/ html js • svn
  • - base.html user.html group_base.html home.html diary_base group page .html template files photo_base .html etc ...
  • AGENDA • linux • vim • (jinja2) • • app/ html js • svn
  • APP/ -1 html app html
  • APP/ -2 app sandbox 1 app html 2 app 4 request 3 get app content 1 request 5 2 app
  • APP/ -3 app sandbox • app html utf-8 • app html html id css • app html script html • app js dom dom nieJS
  • APP/ -4 html http://123.125.48.32:8899/NIEML
  • APP/ -5 app html css • app html id id test tag id app12_test 12 appid • link css app css <nie:css > <nie:css src=”xx.css”/> • app css css app #app_content_[appid] app id app_content_[appid] div
  • APP/ -6 app html css • html tag • css expression • html tag css
  • APP/ -7 nieJS • js <nie:script> • nieJS • nieJS js document.getElementById(id) • value var a = obj.value; / obj.value = “aaa” nieJS var a = obj.getValue(); / obj.setValue(“aaa”) • document.cookie • http://123.125.48.32:8899/NIEJS
  • APP/ -7 app js • nieJS • nieJS js nieJS
  • AGENDA • linux • vim • (jinja2) • • app/ html js • svn
  • SVN
  • SVN -1 • svn co <addr> checkout • svn up • svn st • svn add <file> • svn del <file> • svn mv src_file desc_file • svn diff • svn ci <file> /
  • SVN -2 svn st • A added • C conflict • D deleted • M modified • R replace • not under version control • under version control but missing • ~ The file, directory, or symbolic link item is in the repository as one kind of object, but what's actually in your working copy is some other kind
  • SVN -3 svn up • U The files marked with U contained no local changes but were Updated with changes from the repository. • G The G stands for merGed, which means that the file had local changes to begin with, but the changes coming from the repository didn't overlap with the local changes. • C Confict • U G C up C ~~
  • SVN -4 C conflict ... • C a.html • vim >>> === • • • svn resolved a.html svn • svn st a.html c
  • SVN -5 • svn co checkout • • svn st svn add • svn up conflict • svn st c conflict • svn diff > t.diff t.diff vim t.diff • svn ci log log
  • SVN -6 vim t.diff
  • AGENDA • linux • vim • (jinja2) • • app/ html js • svn
  • Q&A - END -