- emulate
ionic emulate ios -l -c -s --debug
- upload
ionic upload
ionic emulate ios -l -c -s --debug
ionic upload
In iOS, elements use ng-show always show when loaded and disappear immediately. To avoid the problem, add ng-hide into class like that
<a class="ng-hide" ng-show="false">some text</a>function register(id, scope, success, error)
{
var handler = $rootScope.$on('settings:get' + id + scope.$id, success);
scope.$on('$destroy', handler);
// some code
$rootScope.$emit('settings:get' + id + scope.$id, settings);
} + id + scope.$id is that 2 controllers call register(id, $scope, success, error), when $emit occurs, it notify 2 controllers| /* Small devices Tablets (>=768px), ipad 1, 2, 3, air, mini = 678px */ | |
| @media (min-width: 768px) { | |
| } | |
| /* Extra small devices: smartphone (iphone 3,4,5: 320; iphone 6: 375; iphone 6+: 414 */ | |
| @media (max-width: 767px) { | |
| } | |
| /* iphone 6 plus */ | |
| @media (max-width: 414px) { |
RewriteCond TestString CondPattern [flags]
RewriteRule Pattern Substitution [flags]
| // ref: http://wordpress.stackexchange.com/questions/110982/how-to-modify-this-wpdb-query-to-accept-an-array-of-post-statuses | |
| // escape the values | |
| // $filter is array of string | |
| $filter = array_map( 'esc_sql', (array) $filter ); | |
| $filter = "'" . implode( "','", $filter ) . "'"; | |
| $rows = $wpdb->get_results( | |
| $wpdb->prepare( | |
| "SELECT * FROM language_table |
p, .form-groupp {
margin-bottom: 10px;
}.form-group {
margin-bottom: 15px;
}I don't know why but 'the_widget' action in wp-includes/widget.php is not working
do_action( 'the_widget', $widget, $instance, $args );Problem maybe bug from wordpress or resort theme
$.post( "test.php", $( "#testform" ).serialize() )
.done(function( data ) {})
.fail(function(data){
console.log(data.responseJSON);
console.log(data.responseText);
console.log(data.status); // status code, ex: 400
});