Tag:New characteristics

  • An example of asp.net using H5 new features to realize asynchronous upload

    Time:2020-3-1

    ###index.html <!DOCTYPE html> <html> <head> <meta charset=”utf-8″ /> <script src=”Script/jquery-1.10.2.min.js”></script> <script src=”Script/index.js”></script> <title></title> <script type=”text/javascript”> $(function(){ $(“#ajaxFileUpload”).click(function () { formDataUpload(); }); }); </script> </head> <body> <input type=”file” multiple=”multiple” mame=”FileToUpload” /> < input type = “button” value = “Upload” / > <input type=”text” size=”10″/> </body> </html> ###index.js function formDataUpload() { //Here you can select multiple files […]

  • Understanding and comparison of new characteristics of php7

    Time:2020-2-13

    1. Null merge operator (?) Syntax: if the variable exists and the value is not null, it will return its own value, otherwise it will return its second operand //If judgment before php7 if(empty($_GET[‘param’])) { $param = 1; }else{ $param = $_GET[‘param’]; } //Pre php7 ternary operator $param = empty($_GET[‘param’]) ? 1 : $_GET[‘param’]; //Php7 […]

  • HTML5 custom attribute prefix data – and how to use dataset (new feature of HTML5)

    Time:2019-11-8

    HTML5 specifies that non-standard attributes can be added to elements, but the prefix data – is added to provide rendering independent information or semantic information for elements. These attributes can be added and named at will. After a custom attribute can be added starting with data -, the value of the custom attribute can be […]

  • Semantic tagging of new features in HTML5

    Time:2019-10-17

    What’s new in HTML5 Simple DOCTYPE: HTML5 has only one simple document type:<!DOCTYPE html>, indicating that the browser will parse according to the standard mode. Easy to remember coding type You can now use “charset” in the meta tag:<meta charset=”utf-8″ /> Scripts and links do not require type <link rel=”stylesheet” href=”path/to/stylesheet.css” /> <script src=”path/to/script.js”></script> More […]