JQuery implements the method for selecting text and sending Sina Weibo, jquery Sina
This example describes how to use jQuery to select text and send it to Sina Weibo. We will share this with you for your reference. The details are as follows:
I recently noticed that Sina Blog has a small function, that is, a small image will appear when you select a text section. Click this image to send the selected content to Sina Weibo, on the Rise of the moment, I wrote a Demo last night and played it. The code is super simple and not optimized. If you are interested, you can improve it on your own.
The principle is very simple. first obtain the selected text with the mouse, then call the page provided by Sina Blog, and pass the text as a parameter.
The Code is as follows:
<Html xmlns = "http://www.w3.org/1999/xhtml">
That's easy. You can try it on your own. Of course, you can also perform other operations to obtain the selected text. Here, we just call the Sina page. If you are interested, you can create your own applications.