Encapsulating vue instructions based on clamp.js to deal with overflow of multi-line text

Recently, when I was working on a project, I met a requirement that the text in the div should be displayed in two lines, the width of the div should be fixed, and the ellipsis number should be displayed if it overflows. We are all familiar with the overflow problem of single-line text. Just add the following css attributes to ok: overflow: h ...

Posted on Sat, 19 Jan 2019 10:48:12 -0800 by bstruss

IOS Adaptation Guidelines for iOS 11, iPhone X, Xcode9

After updating iOS 11, it is found that there are some areas that need to be adapted. After sorting out, it can be divided into three categories according to priority: 1. The changes caused by upgrading iOS 11 only; 2. Changes caused by packaged Xcode9; 3. Adaptation of the iPhone X I. Changes after iOS 11 upgrade 1. Upgraded, a disordered inte ...

Posted on Sat, 12 Jan 2019 17:24:11 -0800 by sam_h

java.lang.IndexOutOfBoundsException: Index: 1, Size: 2

In daily use of ArrayList, I believe that everyone has encountered such errors as Index Out of Bounds Exception, but often the situation is that index is greater than or equal to Size. Today, I am talking about the situation that Index is smaller than Size. This is a sudden exception in the process of using the mobile p ...

Posted on Sat, 12 Jan 2019 10:54:11 -0800 by JasperBosch

Development of mobile project based on ionic framework by angular JS to access the foreground to judge user rights, control UI layout of project and display and hide tab departments

Angular JS develops mobile project based on ionic framework. How to judge user rights before entering the front desk? First reference https://my.oschina.net/blogsh... This blog is revised in conjunction with personal development projects The first reaction is to add ng-if condition judgment on the tab which is to be controlled by authority, ...

Posted on Thu, 10 Jan 2019 22:51:11 -0800 by bo0

[Android View Touch Event (1)]MotionEvent, ViewConfiguration, Velocity Tracker

[Da Shengdai's Technical Column] http://blog.csdn.net/qq_23191031 Respect for the success of others'work means respect for yourself. Preface stay "Android Control Architecture" Details of Android Control Architecture and Common Coordinate System In this article, I briefly described MotionEvent's common methods in the section &q ...

Posted on Tue, 08 Jan 2019 13:21:09 -0800 by buzz

Regular expressions commonly used in iOS development http://blog.csdn.net/chaoyuan 899/article/details/38583759

Regular expressions commonly used in IOS Regular expressions are used in string processing, form validation and other occasions, practical and efficient. Now we collect some commonly used expressions here in case we need them from time to time. Regular expressions matching Chinese characters: [u 4e00- 9fa5] Commentary: Matching Ch ...

Posted on Mon, 07 Jan 2019 21:00:10 -0800 by someone2088

10- vue django restful framework to create fresh supermarket - user login and mobile phone registration (middle)

Vue+Django REST framework Set up a website of fresh supermarket with front and back ends separated Django rtf completes mobile phone registration and user login (middle) Principle of Json Web Token Because our drf token auth has its shortcomings. So the most common way is JWT. The following is reproduced in: http://lion1ou.win/20 ...

Posted on Tue, 01 Jan 2019 23:27:09 -0800 by highphilosopher

How to create a project based on ant design mobile using Facebook's create-react-app scaffolding

Introduction: create-react-app is a global command-line tool released by Facebook to create a new project.   Usually when we start a react web or app project, we will use npm or yarn to install some dependencies needed by the project, then write webpack.config.js, a series of complex configurations, build the development environment and writ ...

Posted on Mon, 31 Dec 2018 17:48:07 -0800 by mikeyandyou

Reactive Native Learning Notes 20 - Common API (2) AppState Application Front and Background, NetInfo Network Status

It is a very common function in the development of APP to determine whether the application status is in the foreground or in the background, and to obtain the basic application information such as wifi or traffic connection. Today we will introduce AppState and NetInfo modules respectively. AppState AppState can get whether the current AP ...

Posted on Thu, 27 Dec 2018 19:57:07 -0800 by Gutspiller

Python Data Grabbing & Analysis & Machine Learning & Mining & Neural Network

First: Data grabbing: 1: Background research 1: Check robots.txt to find out what restrictions are imposed on crawling the site. 2): pip install builtwith;pip install python-whois 2: Data grabbing: 1: Dynamic loading content: Using selenium #!/usr/bin/env python # -*- coding: utf-8 -*- from selenium import webdriver f ...

Posted on Thu, 27 Dec 2018 14:03:06 -0800 by t_miller_3