Method 1 – substring function
var str= "Hello TecAdmin!";
var newStr = str.substring(0, str.length - 1);
Method 2 – slice function
var str = "Hello TecAdmin!";
var newStr = str.slice(0, -1);
trong file /opt/bitnami/wordpress/wp-content/themes/astra-child/functions.php
Không có nhận xét nào:
Đăng nhận xét