25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

complex.js 422B

16 yıl önce
16 yıl önce
16 yıl önce
16 yıl önce
12345678910111213141516171819
  1. var complex = {
  2. header: function() {
  3. return "Colors";
  4. },
  5. item: [
  6. {name: "red", current: true, url: "#Red"},
  7. {name: "green", current: false, url: "#Green"},
  8. {name: "blue", current: false, url: "#Blue"}
  9. ],
  10. link: function() {
  11. return this["current"] !== true;
  12. },
  13. list: function() {
  14. return this.item.length !== 0;
  15. },
  16. empty: function() {
  17. return this.item.length === 0;
  18. }
  19. };