Skip to content

Instantly share code, notes, and snippets.

自學網頁の嬰兒教材 Day 1

<?php
/**
* Resolve the given type from the container.
*
* @param string $abstract
* @param array $parameters
* @return mixed
*/
public function make($abstract, array $parameters = [])
<input onclick="if ( confirm('sure?') ) { this.disabled=true; this.value='處理中,請稍候...'; this.form.submit(); }else{return false;};" />
if (this.form.checkValidity()) { this.disabled=true; this.value='處理中,請稍候...'; this.form.submit(); } else { this.form.reportValidity(); return false; }
@howtomakeaturn
howtomakeaturn / test.md
Last active February 10, 2019 13:35
test.md

header one

header two

so bold text


the html part

import React from 'react';
class Loading extends React.Component {
render() {
return (
<div style={{
position: "fixed",
width: "100%",
height: "100%",
top: "0",
changeOptionValue(optionIndex, valueIndex, newValue) {
const state = this.state;
const newState = {
...state,
options: state.options.map((option, i) =>
i === optionIndex ?
{ ...option, values: option.values.map((value, ii) =>
ii === valueIndex ?
newValue : value