How to load template file with MarkDown rich text editor

We only need a piece of loading code to finish the mark down loading template file. $("#md-demo").bind('click', function () { $.get("/Lib/MarkDown/examples/test.md", function (md) { testEditor = editormd("test-editormd", { width: "99%", height: 740, path: "/Lib/MarkDo ...

Posted on Mon, 04 Nov 2019 09:25:12 -0500 by villas

Imitation wechat chat page

Imitation wechat chat page Make a chat page similar to wechat, and paste the code: wxml: <view class='container chat'> <view class="page_bd"> <scroll-view catchtap="scrollClick" class="msg_scroll" style="max-height:{{scrollHeight}};height:auto;" scroll-into-view='{{toView}} ...

Posted on Fri, 01 Nov 2019 05:29:23 -0400 by ForgotMyPass

Android copy of little red book custom expansion of folded TextView

Detailed explanation This is the beginning of the story. There is a demand for products. To make a small red book text folding function, there are a series of things in the back. However, after the implementation, I have learned a lot about TextView intercepting text. The specific effect is as follows: First, summarize the following points to ...

Posted on Sat, 19 Oct 2019 17:03:17 -0400 by TheLoveableMonty

Start validating forms with HTML5 and CSS3

This article is reproduced on: Ape 2048 website Start validating forms with HTML5 and CSS3 Verify forms using HTML5 and CSS3 Client-side validation is one of the most commonly used functions of web client programs. We used various js libraries to validate forms before. HTML5 is already available for us. Form Validation Function. As for why i ...

Posted on Tue, 10 Sep 2019 09:12:36 -0400 by mikeq

python implements itchat

python implements itchat install sudo pip install itchat Sign in itchat.auto_login() This method will scan the two-dimensional code login through Wechat, but this way of login is really short-term login, and will not retain the status of login, that is, the next login still needs to scan the two-dimensional code, if added.hotReload==True,Then ...

Posted on Sun, 30 Jun 2019 17:11:15 -0400 by christine75

String Subscription and Performance Problems in Swift

String Subscription and Performance Problems in Swift Subscription String String uses String.Index subscript to get Character, String.Index to get from String let greeting = "Guten Tag!" greeting[greeting.startIndex] // Character "G" greeting[greeting.index(before: greeting.endIndex)] // Character "!" greeting[greeting.index(after: greeting.sta ...

Posted on Sat, 29 Jun 2019 13:53:44 -0400 by newdles

WebSocket Network Communication Protocol

The last article briefly introduced the http protocol, and this time introduced the WebSocket protocol. There is a big difference between the two. WebSocket protocol is a full-duplex communication protocol that HTML5 started to provide on a single TCP connection. Simply understand what a duplex communication protocol is. It has been said before ...

Posted on Tue, 14 May 2019 18:48:20 -0400 by adam87

mysql utf8mb4 character set, store emoji expression

Character set utf8mb4 utf8mb4 is compatible with utf8 and can represent more characters than utf8. Look at the unicode encoding region From 1 to 126, it belongs to the traditional utf8 area. Of course, utf8mb4 is compatible with this area. The extension area of utf8mb4 is below 126 lines. When you need to store those characters, you can only u ...

Posted on Mon, 25 Mar 2019 20:09:30 -0400 by boonika