Keep reading and coding.
🇨🇳 Guangzhou China・🚀 Fullstack Engineer
my blog
Home Page: https://blog.wenzhixin.net.cn
Keep reading and coding.
🇨🇳 Guangzhou China・🚀 Fullstack Engineer
Hi ,
I am using the bootstrap table plugin. And in my requirement I have a inner table inside a given table. The inner table and the parent table are both bootstrap table . The issue I am facing is - when i try to sort the inner table the sort function for both the inner table and the parent table gets triggered, as a result the inner table collapses .
I feel this is happening because of these below lines of code
this.$container.off('click', '.th-inner').on('click', '.th-inner', function (event) {
if (that.options.sortable && $(this).parent().data().sortable) {
that.onSort(event);
}
});
On clicking on the inner table header, the inner table collapses. Its because the sorting for the parent table gets fired
This being a very critical issue , would really appreciate your inputs.
Ionic: http://ionicframework.com/
$ionicHistory.clearCache();
to clear the cache of history.clearCache
: Clears out the app's entire history, except for the current view.ion-slide-box
can not display images when using ajax to get the image list?ng-init
attribute to ion-slide
and then update the slide box with:$ionicSlideBoxDelegate.$getByHandle('image-viewer').update();
ng-change
in select
to get the selected value?ng-model
to get the selected value: https://jsfiddle.net/wenyi/mtp0kcdd/.ng-model
type to string: https://jsfiddle.net/wenyi/mtp0kcdd/3/.cordova-plugin-inappbrowser
plugin:ionic plugin add cordova-plugin-inappbrowser
and then use:
<a href="{{url}}" onclick="window.open(this.href, '_system', 'location=yes');return false;">url</a>
registerBackButtonAction
to listen the back button action:$ionicPlatform.registerBackButtonAction(function () {
if ($ionicHistory.currentStateName() === 'app.home') {
$scope.showExit();
} else {
navigator.app.backHistory();
}
}, 100);
sudo useradd -m proxy
id_rsa
key, will create id_rsa
and id_rsa.pub
files:ssh-keygen
authorized_keys
:sudo mkdir /home/proxy/.ssh
sudo cp id_rsa.pub /home/proxy/.ssh/authorized_keys
sudo chown -R proxy.proxy /home/proxy/.ssh
sudo vi /etc/passwd
Add /bin/false
to proxy line:
proxy:x:1002:1002::/home/proxy:/bin/false
host proxy
HostName server_ip
User proxy
IdentityFile ~/.ssh/proxy/id_rsa
ssh proxy
and it will return Connection to server_ip closed.
Q: How to turn off number input spinners?
A: WebKit desktop browsers add little up down arrows to number inputs called spinners.We can turn them off visually like this:
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
您的博客中的侧栏效果挺棒的,能否封装出个组件来呢
curl --silent --location https://rpm.nodesource.com/setup | bash -
yum -y install nodejs
npm install ionic -g
npm install cordova -g
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.rpm"
rpm -ivh jdk-8u45-linux-x64.rpm
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
./android update sdk --no-ui
I have a grid that has expandable rows and each row when expanded shows a sub grid. But the rendering of the sub grids is taking too much of time, even when there are only 50 rows and when i execute expand all rows. Using the bellow method
$scope.gridApi.expandable.toggleAllRows();
My understanding is some of the subgrid columns are having cell templates, which is causing the excess rendering time.
Any suggestion or some psuedo code would b really helpful .
兄台blog上express图标换了吧。。。。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.