var mVue = new Vue({
el: '#detail',
data: {
ryList: [],
activeContent: []
},
methods: {
getDetailContent: function() {
var request = {
QueryString: function(val) {
var reg = new RegExp("(^|&)" + val + "=([^&]*)(&|$)");
var result = window.location.search.substr(1).match(reg);
return result ? decodeURIComponent(result[2]) : null;
}
};
var id = request.QueryString('id');
$.ajax({
url: BASE_URL + "/dwbz/details",
Vue的js取值模板及方法调用
最新推荐文章于 2024-01-14 09:37:37 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)