This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{"name":"请选择","sub":[{"name":"请选择"}],"type":1},{"name":"北京","sub":[{"name":"请选择"},{"name":"东城区"},{"name":"西城区"},{"name":"崇文区"},{"name":"宣武区"},{"name":"朝阳区"},{"name":"海淀区"},{"name":"丰台区"},{"name":"石景山区"},{"name":"房山区"},{"name":"通州区"},{"name":"顺义区"},{"name":"昌平区"},{"name":"大兴区"},{"name":"怀柔区"},{"name":"平谷区"},{"name":"门头沟区"},{"name":"密云县"},{"name":"延庆县"},{"name":"其他"}],"type":0},{"name":"广东","sub":[{"name":"请选择","sub":[]},{"name":"广州","sub":[{"name":"请选择"},{"name":"越秀区"},{"name":"荔湾区"},{"name":"海珠区"},{"name":"天河区"},{"name":"白云区"},{"name":"黄埔区"},{"name":"番禺区"},{"name":"花都区"},{"name":"南沙区"},{"name":"萝岗区"},{"name":"增城市"},{"name":"从化市"},{"name":"其他"}],"type":0},{"name":"深圳","sub":[{"name":"请选择"},{"name":"福田区"},{"name":"罗湖区"},{"name":"南山区"},{"name":"宝安区"},{"name":"龙岗区"},{"name":"盐田区"},{"name":"其他"}],"type":0},{"name":"珠海","sub":[{"name":"请选择"},{"name":"香洲区"},{"name":"斗门区"},{"name":"金湾区"},{"name":"其他"}],"type":0},{"name":"汕头","sub":[{"name":"请选择"},{"name":"金平区"},{"name":"濠江区"},{"name":"龙湖区"},{"name":"潮阳区"},{"name":"潮 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| server_name angularjs.local; | |
| keepalive_timeout 5; | |
| charset utf-8; | |
| location /api { | |
| rewrite ^/api/(.*) /$1 break; | |
| proxy_redirect off; | |
| proxy_pass http://localhost:3000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is example contains the bare mininum to get nginx going with | |
| # Unicorn or Rainbows! servers. Generally these configuration settings | |
| # are applicable to other HTTP application servers (and not just Ruby | |
| # ones), so if you have one working well for proxying another app | |
| # server, feel free to continue using it. | |
| # | |
| # The only setting we feel strongly about is the fail_timeout=0 | |
| # directive in the "upstream" block. max_fails=0 also has the same | |
| # effect as fail_timeout=0 for current versions of nginx and may be | |
| # used in its place. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% flash.each do |name, msg| %> | |
| <% if msg.is_a?(String) %> | |
| <div class="alert alert-<%= name == :notice ? "success" : "error" %>"> | |
| <a class="close" data-dismiss="alert">×</a> | |
| <%= content_tag :div, msg, :id => "flash_#{name}" %> | |
| </div> | |
| <% end %> | |
| <% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).on('submit','#save-user',function(e) { | |
| e.preventDefault(); | |
| data = $(this).serializeArray(); | |
| data.push({ | |
| name: 'tag', | |
| value: 'saveUser' | |
| }) | |
| console.log(data); |