Tags » Programming - Notes

Java Script Notes: Part2. 条件语句

if…else语句

  • 逻辑表达式

    if (条件) {
    console.log(输出内容1);
    } else {
    console.log(输出内容2);
    }

  • 半个“if…else”——if语句

    可以只使用if语句,不适用else部分。但是else语句必须建立在if的基础上。

  • 多个“if…else”——else if语句

    在第一个条件的else情况下,还有第二条件

    if (条件1) {
    console.log(输出内容1);
    } else if (条件2) {

207 more words
编程笔记

Java Script Notes: Part1. Java Script的数据类型和变量

Java Script控制台

  • Google开发者工具中的Java Script

    进入Google Crome的开发者工具,点击Console就可编辑JS代码,将代码发送至浏览器即可预览,如创建一个提醒窗alert(“Hello world!”);

    注意:如要写两行代码,转到下一行时要按shift+enter

    不同浏览器上有各自的开发者工具,因此有不同的JS控制台。

  • 注释

    注释可以帮助解释所写的代码是什么含义,而不会被程序所执行。在一行中,用//开头,这一行后面的所有文字都可以作为注释(仅限这一行);如果注释要分很多行,则用/*开头,收尾符号颠倒。

  • 79 more words
编程笔记

Wall-to-Wall Writers This Past Thursday!

It was a full day of readings, masterclasses, writing prompts, craft talks and general writerly fun in and around the (Nitty Gritty) Magic City last week — and here’s photographic proof! 56 more words

Poetry

Poets Joel Brouwer, Rajiv Mohabir, and Kristin Robertson Set to Visit the (Nitty Gritty) Magic City Tomorrow!

Thursday is wall-to-wall visiting writers in and around ASFA-CW! Here’s the scoop:

First up, poet Joel Brouwer will be visiting ASFA during the day to read from his latest book, … 344 more words

Poetry

A Programming Note

Hi – Whitlock half of ‘Whitlock & Pope’ here. It’s been quite a while since I’ve posted anything, so here’s a little ditty about how life got in the way and how I’m trying to get back into the action. 698 more words

Miscellaneous

Welcome back to school, ASFA-CW!

It’s time to commence the 2017-18 version of ASFA-CW! For incoming students and parents, here’s a PDF link to this year’s calendar of events. There are still a few important dates to nail down, but this is a good overview of what’s on tap for 2017-18. 9 more words

Programming Notes

Mastering CSS Notes

These are some notes I took when going through the Mastering CSS Course on Udemy. It’s an excellent course for anyone looking to learn the details of how CSS works, just make sure to wait to buy it until Udemy launches one of its flash sales (those sales happen frequently).  2,123 more words

CSS